多模增加事件和按键状态查询接口

Signed-off-by: mayunteng_1 <mayunteng@huawei.com>
Change-Id: I08f565f004c3922d384e8c76b1e23e494d5bce36
This commit is contained in:
mayunteng_1
2024-03-13 02:54:53 +00:00
parent 1899b08ec0
commit 0de91dcb2f
2 changed files with 6 additions and 5 deletions
@@ -36,6 +36,7 @@
*/
#include <stdint.h>
#include "native_key_code.h"
#ifdef __cplusplus
@@ -51,9 +52,9 @@ enum Input_KeyStateAction {
/** Default */
KEY_DEFAULT = -1,
/** Pressing of a key */
KEY_RELEASED = 0,
KEY_PRESSED = 0,
/** Release of a key */
KEY_PRESSED = 1,
KEY_RELEASED = 1,
/** Key switch enabled */
KEY_SWITCH_ON = 2,
/** Key switch disabled */
@@ -87,8 +88,8 @@ typedef enum {
* @brief Queries the key state.
*
* @param keyState Key state.
* @return Returns {@link Input_Result} INPUT_SUCCESS - if the operation is successful.
* returns {@link Input_Result} INPUT_PARAMETER_ERROR - if bad parameter.
* @HTTP4O4 Returns {@Link Input_Result#INPUT_SUCCESS} if the operation is successful;
* returns an error code defined in {@Link Input_Result} otherwise.
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 12
*/
+1 -1
View File
@@ -1,5 +1,5 @@
[
{
{
"first_introduced": "12",
"name": "OH_Input_GetKeyState"
},