Input_InterceptorEventCallback
typedef struct Input_InterceptorEventCallback {...} Input_InterceptorEventCallback
Overview
Defines the structure of interceptor callback events, including mouse events, touch events, and axis events.
Since: 12
Related module: input
Header file: oh_input_manager.h
Summary
Member Variables
| Name | Description |
|---|---|
| Input_MouseEventCallback mouseCallback | Callback for mouse events. |
| Input_TouchEventCallback touchCallback | Callback used to return the touch event. |
| Input_AxisEventCallback axisCallback | Callback for axis events. |
Member functions
| Name | typedef Keyword | Description |
|---|---|---|
| typedef void (*Input_KeyEventCallback)(const Input_KeyEvent* keyEvent) | Input_KeyEventCallback() | Defines the lifecycle callback for keyEvent. If the callback is triggered, keyEvent will be destroyed. |
| typedef void (*Input_MouseEventCallback)(const Input_MouseEvent* mouseEvent) | Input_MouseEventCallback() | Defines the lifecycle callback for mouseEvent. If the callback is triggered, mouseEvent will be destroyed. |
| typedef void (*Input_TouchEventCallback)(const Input_TouchEvent* touchEvent) | Input_TouchEventCallback() | Defines the lifecycle callback for touchEvent. If the callback is triggered, touchEvent will be destroyed. |
| typedef void (*Input_AxisEventCallback)(const Input_AxisEvent* axisEvent) | Input_AxisEventCallback() | Defines the lifecycle callback for axisEvent. If the callback is triggered, axisEvent will be destroyed. |
Member Function Description
Input_KeyEventCallback()
typedef void (*Input_KeyEventCallback)(const Input_KeyEvent* keyEvent)
Description
Defines the lifecycle callback for keyEvent. If the callback is triggered, keyEvent will be destroyed.
Since: 12
Parameters
| Name | Description |
|---|---|
| const Input_KeyEvent* keyEvent | Key event object. |
Input_MouseEventCallback()
typedef void (*Input_MouseEventCallback)(const Input_MouseEvent* mouseEvent)
Description
Defines the lifecycle callback for mouseEvent. If the callback is triggered, mouseEvent will be destroyed.
Since: 12
Parameters
| Name | Description |
|---|---|
| const Input_MouseEvent* mouseEvent | Mouse event object. |
Input_TouchEventCallback()
typedef void (*Input_TouchEventCallback)(const Input_TouchEvent* touchEvent)
Description
Defines the lifecycle callback for touchEvent. If the callback is triggered, touchEvent will be destroyed.
Since: 12
Parameters
| Name | Description |
|---|---|
| const Input_TouchEvent* touchEvent | touchEvent object. |
Input_AxisEventCallback()
typedef void (*Input_AxisEventCallback)(const Input_AxisEvent* axisEvent)
Description
Defines the lifecycle callback for axisEvent. If the callback is triggered, axisEvent will be destroyed.
Since: 12
Parameters
| Name | Description |
|---|---|
| const Input_AxisEvent* axisEvent | Axis event object. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 capi-input-input-cursorinfo
openharmony 鸿蒙 js-apis-inputevent
openharmony 鸿蒙 js-apis-infraredemitter
openharmony 鸿蒙 js-apis-inputeventclient-sys
openharmony 鸿蒙 capi-input-input-keystate
openharmony 鸿蒙 js-apis-keycode
openharmony 鸿蒙 capi-input-input-axisevent
openharmony 鸿蒙 js-apis-pointer-sys