From 480e852d7a2d7aa17c9e490e21e9f1238cbfb5e1 Mon Sep 17 00:00:00 2001 From: hellohyh001 Date: Fri, 9 Aug 2024 07:28:20 +0000 Subject: [PATCH] add interface capi Signed-off-by: hellohyh001 Change-Id: Ied727b52c701e5dc71ab93f104e25a495886de0f --- 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 7506a28f9..ec240e264 100644 --- a/multimodalinput/kits/c/input/oh_input_manager.h +++ b/multimodalinput/kits/c/input/oh_input_manager.h @@ -683,6 +683,19 @@ int64_t OH_Input_GetTouchEventActionTime(const struct Input_TouchEvent* touchEve */ void OH_Input_CancelInjection(); +/** + * @brief Obtains the interval since the last system input event. + * + * @param timeInterval Interval, in nanoseconds. + * @return OH_Input_GetIntervalSinceLastInput status code, specifically. + * {@Link INPUT_SUCCESS} if the Operation is successful.\n + * {@Link INPUT_SERVICE_EXCEPTION} otherwise.\n + * {@link INPUT_PARAMETER_ERROR} Parameter check failed.\n + * @syscap SystemCapability.MultimodalInput.Input.Core + * @since 13 + */ +int32_t OH_Input_GetIntervalSinceLastInput(int64_t *timeInterval); + #ifdef __cplusplus } #endif -- Gitee