openharmony 鸿蒙 capi-oh-axis-type-h

2025-06-12 浏览 (1)

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

Nametypedef KeywordDescription
InputEvent_AxisTypeInputEvent_AxisTypeProvides axis types of the input device.
InputEvent_AxisEventTypeInputEvent_AxisEventTypeProvides event types of the input device.
InputEvent_AxisActionInputEvent_AxisActionProvides actions of the input device.

Enum Description

InputEvent_AxisType

enum InputEvent_AxisType

Description

Defines the axis type of an input device.

Since: 12

EnumDescription
AXIS_TYPE_UNKNOWNUnknown axis type, which is usually used as the initial value.
AXIS_TYPE_SCROLL_VERTICALVertical 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_HORIZONTALHorizontal 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_PINCHPinch axis, which is used to describe a two-finger pinch gesture on the touchpad.
AXIS_TYPE_ROTATERotation 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

EnumDescription
AXIS_EVENT_TYPE_PINCH = 1Two-finger pinch event. The value can be AXIS_TYPE_PINCH or AXIS_TYPE_ROTATE.
Since: 12
AXIS_EVENT_TYPE_SCROLL = 2Scroll 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

EnumDescription
AXIS_ACTION_CANCEL = 0Cancellation of an axis input event.
AXIS_ACTION_BEGINStart of an axis input event.
AXIS_ACTION_UPDATEUpdate of an axis input event.
AXIS_ACTION_ENDEnd of an axis input event.

你可能感兴趣的鸿蒙文章

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

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/JpQcdV