IndirectPointerEventPrimaryDirectionalMotionAxis
The primary axis for motion from an [IndirectPointerEvent]. Indirect input devices such as
IndirectPointerEventPrimaryDirectionalMotionAxis
value class IndirectPointerEventPrimaryDirectionalMotionAxis
private constructor(internal val value: Int)
The primary axis for motion from an IndirectPointerEvent. Indirect input devices such as
touchpads that do not move a cursor on screen may define a primary axis for motion (such as
scrolling). This facilitates the translation of a 2D input gesture into a 1D scroll on the
screen. For example, an input device might be wide horizontally but narrow vertically. In such a
case, it would designate X as its primary axis of motion. This means horizontal scrolling on the
input device would cause a horizontal list to scroll horizontally, and a vertical list to scroll
vertically - even though the direction of motion on the input device is horizontal in both cases.
Companion Object
Properties
val None = IndirectPointerEventPrimaryDirectionalMotionAxis(0)
No coordinate axes specified for movement.
val X = IndirectPointerEventPrimaryDirectionalMotionAxis(1)
X coordinate axis specified as the primary movement axis.
val Y = IndirectPointerEventPrimaryDirectionalMotionAxis(2)
Y coordinate axis specified as the primary movement axis.