From 2bd1656321fe24c2285696b6153be9073402700a Mon Sep 17 00:00:00 2001 From: blueyouh Date: Wed, 28 May 2025 19:04:46 +0800 Subject: [PATCH] Support config of MaxMultiTouchPointNum Signed-off-by: blueyouh Change-Id: I9feff24f0ae5fc5d6123c6ac336c5777958ef0ba --- multimodalinput/kits/c/input/oh_input_manager.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/multimodalinput/kits/c/input/oh_input_manager.h b/multimodalinput/kits/c/input/oh_input_manager.h index 3934be3b9a..2549cd388b 100644 --- a/multimodalinput/kits/c/input/oh_input_manager.h +++ b/multimodalinput/kits/c/input/oh_input_manager.h @@ -1837,6 +1837,19 @@ Input_Result OH_Input_GetDeviceAddress(Input_DeviceInfo *deviceInfo, char **addr * @since 15 */ Input_Result OH_Input_GetFunctionKeyState(int32_t keyCode, int32_t *state); + +/** + * @brief Queries the maximum number of touch points supported by the current device. + * If -1 is returned, the number is unknown. + * @param count Maximum number of touch points supported. + * @return one of result code: + * {@link INPUT_SUCCESS} if the operation is successful. + * {@link INPUT_PARAMETER_ERROR} if count is a null pointer. + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 20 +*/ +Input_Result OH_Input_QueryMaxTouchPoints(int32_t *count); + #ifdef __cplusplus } #endif -- Gitee