Skip to main content

Module input

Module input 

Expand description

Zero-Heap Bitset Input Engine & Mobile Touch Gestures (input).

Provides:

  • 256-channel zero-allocation button tracking (ZeroHeapButtonInput),
  • Mobile virtual touch sticks with deadzones and radial clamping (VirtualTouchStick),
  • 10-slot multi-touch finger gesture tracker (MultiTouchTracker).

Modules§

buttons
Zero-Heap Bitset Input Engine.
touch
Mobile Virtual Touch Controller & Multi-Touch Gestures.

Structs§

MultiTouchTracker
Fixed 10-slot multi-touch tracker without heap allocation.
TouchContact
Touch contact point record for multi-touch finger gesture tracking.
VirtualTouchStick
Virtual touch joystick for mobile phones and touchscreen devices.
ZeroHeapButtonInput
Zero-heap bitset representing 256 discrete button states with single-frame transition events.

Constants§

BUTTON_MIDDLE
BUTTON_PRIMARY
BUTTON_SECONDARY
INPUT_WORDS_4
KEY_A
KEY_ARROW_DOWN
KEY_ARROW_LEFT
KEY_ARROW_RIGHT
KEY_ARROW_UP
KEY_D
KEY_E
KEY_ESCAPE
KEY_Q
KEY_S
KEY_SHIFT
KEY_SPACE
KEY_TAB
KEY_W
MAX_TOUCH_POINTS