harmony 鸿蒙oh_axis_type.h
oh_axis_type.h
Overview
Defines the axis event structures and enumerations.
Library: libohinput.so
System capability: SystemCapability.MultimodalInput.Input.Core
Since: 12
Related module: input
Summary
Enums
|Name|typedef Keyword|Description| |–|–|–| |InputEvent_AxisType|InputEvent_AxisType|Provides axis types of the input device.| |InputEvent_AxisEventType|InputEvent_AxisEventType|Provides event types of the input device.| |InputEvent_AxisAction|InputEvent_AxisAction|Provides actions of the input device.|
Enum Description
InputEvent_AxisType
enum InputEvent_AxisType
Description
Defines the axis type of an input device.
Since: 12
|Enum|Description | |–|—————-| |AXIS_TYPE_UNKNOWN|Unknown axis type, which is usually used as the initial value.| |AXIS_TYPE_SCROLL_VERTICAL|Vertical scroll axis. When you scroll the mouse wheel or slide with one or two fingers on the touchpad, the status of the vertical scroll axis changes. | |AXIS_TYPE_SCROLL_HORIZONTAL|Horizontal scroll axis. When you scroll the mouse wheel or slide with two fingers on the touchpad, the status of the horizontal scroll axis changes. | |AXIS_TYPE_PINCH|Pinch axis, which is used to describe a two-finger pinch gesture on the touchpad. | |AXIS_TYPE_ROTATE|Rotation axis, which is used to describe a two-finger rotation gesture on the touchpad. |
InputEvent_AxisEventType
enum InputEvent_AxisEventType
Description
Event type of the input device.
Since: 12
|Enum|Description|
|–|–|
|AXIS_EVENT_TYPE_PINCH = 1|Two-finger pinch event. The value can be AXIS_TYPE_PINCH or AXIS_TYPE_ROTATE.
Since: 12|
|AXIS_EVENT_TYPE_SCROLL = 2|Scroll axis event. The value can be AXIS_TYPE_SCROLL_VERTICAL and AXIS_TYPE_SCROLL_HORIZONTAL. For mouse wheel events, the value can only be AXIS_TYPE_SCROLL_VERTICAL.
Since: 12|
InputEvent_AxisAction
enum InputEvent_AxisAction
Description
Action of the input device.
Since: 12
|Enum|Description| |–|–| |AXIS_ACTION_CANCEL = 0|Cancellation of an axis input event.| |AXIS_ACTION_BEGIN|Start of an axis input event.| |AXIS_ACTION_UPDATE|Update of an axis input event.| |AXIS_ACTION_END|End of an axis input event.|
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Input_DeviceListener
harmony 鸿蒙Input_InterceptorEventCallback
harmony 鸿蒙Input_DeviceListener
harmony 鸿蒙Input_InterceptorEventCallback
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦