pub unsafe extern "C" fn OH_ArkUI_MouseEvent_GetPressedButtons(
event: *const ArkUI_UIInputEvent,
pressedButtons: *mut i32,
length: *mut i32,
) -> i32Available on crate features
api-12 and api-15 only.Expand description
Obtains the pressed buttons from a mouse event.
§Arguments
-
event- Pointer to an ArkUI_UIInputEvent object. -
pressedButtons- Array of the pressed buttons. An int array must be created beforehand to store the pressed buttons. -
length- Length of the passed pressedButtons array (when used as an input parameter); number of the buttons pressed (when used as an output parameter).
§Returns
- Returns the result code.
Returns [
ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_BUFFER_SIZE_ERROR] if the given buffer size is insufficient.
Available since API-level: 15