OH_Input_SetMouseEventAxisValue

Function OH_Input_SetMouseEventAxisValue 

Source
pub unsafe extern "C" fn OH_Input_SetMouseEventAxisValue(
    mouseEvent: *mut Input_MouseEvent,
    axisValue: f32,
)
Available on crate feature api-12 only.
Expand description

Sets the axis value for a mouse axis event.

ยงArguments

  • mouseEvent - Mouse event object.

  • axisValue - Axis value. A positive value means scrolling forward, and a negative number means scrolling backward.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12