harmony 鸿蒙oh_axis_type.h

  • 2025-06-12
  • 浏览 (7)

oh_axis_type.h

Overview

Defines the axis event structures and enumerations.

System capability: SystemCapability.MultimodalInput.Input.Core

Library: libohinput.so

Since: 12

Related module: Input

Summary

Types

Name Description
typedef enum InputEvent_AxisType InputEvent_AxisType Axis type of the input device.
typedef enum InputEvent_AxisEventType InputEvent_AxisEventType Event type of the input device.
typedef enum InputEvent_AxisAction InputEvent_AxisAction Action of the input device.

Enum

Name Description
InputEvent_AxisType {
AXIS_TYPE_UNKNOWN, AXIS_TYPE_SCROLL_VERTICAL, AXIS_TYPE_SCROLL_HORIZONTAL,
AXIS_TYPE_PINCH, AXIS_TYPE_ROTATE
}
Axis type of the input device.
InputEvent_AxisEventType { AXIS_EVENT_TYPE_PINCH = 1, AXIS_EVENT_TYPE_SCROLL = 2 } Event type of the input device.
InputEvent_AxisAction { AXIS_ACTION_CANCEL = 0, AXIS_ACTION_BEGIN, AXIS_ACTION_UPDATE, AXIS_ACTION_END } Action of the input device.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Input Kit

harmony 鸿蒙Input_DeviceListener

harmony 鸿蒙Input_InterceptorEventCallback

harmony 鸿蒙Input_AxisEvent

harmony 鸿蒙Input_DeviceInfo

harmony 鸿蒙Input_DeviceListener

harmony 鸿蒙Input_Hotkey

harmony 鸿蒙Input_InterceptorEventCallback

harmony 鸿蒙Input_InterceptorOptions

harmony 鸿蒙Input_KeyEvent

0  赞