Skip to main content

OH_Input_AddAxisEventMonitorForAll

Function OH_Input_AddAxisEventMonitorForAll 

Source
pub unsafe extern "C" fn OH_Input_AddAxisEventMonitorForAll(
    callback: Input_AxisEventCallback,
) -> Input_Result
Expand description

@brief Adds a listener for all types of axis events, which are defined in {@link InputEvent_AxisEventType}.

@permission ohos.permission.INPUT_MONITORING @param callback Callback used to receive axis events. @return {@link INPUT_SUCCESS} if the operation is successful;
{@link INPUT_PERMISSION_DENIED} if permission verification fails;
{@link INPUT_PARAMETER_ERROR} if the callback is empty;
{@link INPUT_SERVICE_EXCEPTION} if the service is abnormal. @syscap SystemCapability.MultimodalInput.Input.Core @since 12