Skip to main content

Module input_devices

Module input_devices 

Source
Expand description

Higher-level input device policy contracts.

This module describes how backends should normalize touch, stylus, and gamepad input before handing it to document/navigation code. It deliberately stays data-oriented so hosts can adopt the contracts without coupling this crate to any specific windowing backend.

Structs§

CancelCaptureRouteReport
GamepadDeviceId
GamepadNavigationPolicy
GamepadNavigationReport
StylusMetadata
StylusMetadataSupport
StylusRouteReport
TouchGestureClassification
TouchGesturePolicy
TouchGestureSample

Enums§

GamepadAxis
GamepadButton
GamepadInput
GamepadNavigationAction
PointerCaptureInteraction
StylusButton
StylusContactPhase
StylusMetadataField
TouchGestureKind

Functions§

classify_touch_gesture
map_gamepad_navigation
route_cancel_for_capture
route_stylus_metadata