From 23c7eae384687569dbd22bb3fe3b52782fb049b1 Mon Sep 17 00:00:00 2001 From: wanghao1717 Date: Tue, 27 May 2025 11:10:05 +0800 Subject: [PATCH 1/2] add keycode Signed-off-by: wanghao1717 --- multimodalinput/kits/c/input/oh_key_code.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/multimodalinput/kits/c/input/oh_key_code.h b/multimodalinput/kits/c/input/oh_key_code.h index 32b3b9bcf..65eb782e3 100644 --- a/multimodalinput/kits/c/input/oh_key_code.h +++ b/multimodalinput/kits/c/input/oh_key_code.h @@ -49,6 +49,8 @@ typedef enum { KEYCODE_UNKNOWN = -1, /** Function (Fn) key */ KEYCODE_FN = 0, + /** Wired earphones play/pause button */ + KEYCODE_HEADSETHOOK = 6, /** Volume Up key */ KEYCODE_VOLUME_UP = 16, /** Volume Down button */ -- Gitee From 3e2ece0bcf7e85550f59110b59803e9c5c21ad2c Mon Sep 17 00:00:00 2001 From: wanghao1717 Date: Tue, 27 May 2025 15:02:50 +0800 Subject: [PATCH 2/2] fix Signed-off-by: wanghao1717 --- multimodalinput/kits/c/input/oh_key_code.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/multimodalinput/kits/c/input/oh_key_code.h b/multimodalinput/kits/c/input/oh_key_code.h index 65eb782e3..ac4d37d56 100644 --- a/multimodalinput/kits/c/input/oh_key_code.h +++ b/multimodalinput/kits/c/input/oh_key_code.h @@ -49,7 +49,10 @@ typedef enum { KEYCODE_UNKNOWN = -1, /** Function (Fn) key */ KEYCODE_FN = 0, - /** Wired earphones play/pause button */ + /** + * Wired earphones play/pause button + * @since 20 + */ KEYCODE_HEADSETHOOK = 6, /** Volume Up key */ KEYCODE_VOLUME_UP = 16, -- Gitee