IndirectTouchEventPrimaryDirectionalMotionAxis

Class

Common
@ExperimentalIndirectTouchTypeApi
value class IndirectTouchEventPrimaryDirectionalMotionAxis
private constructor(internal val value: Int)

The primary axis for motion from an IndirectTouchEvent. Input devices such as trackpads that do not map to the screen can define a primary axis for scrolling or movement. 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 the on-screen content to scroll along its main axis, as vertical (Y) axis scrolling would be impractical.

Companion Object

Properties

Common
val None = IndirectTouchEventPrimaryDirectionalMotionAxis(0)

No coordinate axes specified for movement.

Common
val X = IndirectTouchEventPrimaryDirectionalMotionAxis(1)

X coordinate axis specified as the primary movement axis.

Common
val Y = IndirectTouchEventPrimaryDirectionalMotionAxis(2)

Y coordinate axis specified as the primary movement axis.