pub unsafe extern "C" fn OH_Input_SetAxisEventAction(
axisEvent: *mut Input_AxisEvent,
action: InputEvent_AxisAction,
) -> Input_ResultAvailable on crate feature
api-12 only.Expand description
Sets the axis event action.
§Arguments
-
axisEvent- Axis event object. For details, seeInput_AxisEvent. -
action- Axis event action. The values are defined inInputEvent_AxisAction.
§Returns
- OH_Input_SetAxisEventAction function result code.
[
INPUT_SUCCESS] Sets the axis event action success.
[INPUT_PARAMETER_ERROR] The axisEvent is NULL.
Required System Capabilities: SystemCapability.MultimodalInput.Input.Core
Available since API-level: 12