pub unsafe extern "C" fn OH_Input_GetAxisEventAxisValue(
axisEvent: *const Input_AxisEvent,
axisType: InputEvent_AxisType,
axisValue: *mut f64,
) -> Input_ResultAvailable on crate feature
api-12 only.Expand description
Obtains the axis value for the specified axis type of the axis event.
§Arguments
-
axisEvent- Axis event object. For details, seeInput_AxisEvent. -
axisType- Axis type. The values are defined inInputEvent_AxisType. -
axisValue- Axis value.
§Returns
- OH_Input_GetAxisEventAxisValue function result code.
[
INPUT_SUCCESS] Obtains the axis value of the axis event success.
[INPUT_PARAMETER_ERROR] The axisEvent is NULL or the axisValue is NULL,
or the axisType not found in the axisEvent.
Required System Capabilities: SystemCapability.MultimodalInput.Input.Core
Available since API-level: 12