Motion sensors (DualShock 4 / DualSense / Switch / Steam Deck). Gyro is angular velocity in rad/s, accelerometer is m/s^2 including gravity, both in SDL's gamepad frame (+X right, +Y up, +Z toward the player). Absent sen
How several mappings of one action combine (UE5 EInputActionAccumulationBehavior). TakeHighest keeps, per axis, the value with the largest magnitude, so a stick at 0.5 and a key at 1 read 1 rather than clamping a sum; Cu
A platform that reads controllers by ACTION rather than by button (Steam Input): the player's own bindings, action sets and the pad's glyphs live in the platform, and the game asks "is Scan pressed", not "is RT down". Th
Two actions listening to the same physical source. The editor's bindings page surfaces these; chorded combinations are still reported — whether the overlap is intentional is a design call, not an engine one.
One player-authored rebind: the complete binding list a player chose for a single action in a single context. The user tier stores overrides rather than a snapshot of every context, because the Enhanced-Input contexts ar
UE-style input routing. Set by gameplay (SetInputMode) when a UI modal opens/closes; the platform event pump consults it — together with the per-event "did the UI consume this?" flag — to decide whether a device event re
The physical device the player most recently used. Lets a HUD pick the right button-prompt glyphs (keyboard keycaps vs. Xbox vs. PlayStation). The glyph art is the game's; this only tracks which family to show.
Reads a .mirec file produced by InputRecorder and replays its events into InputManager one frame at a time. The full event stream is read into a std::vector at Load() time — recordings are small (KB to single-digit MB fo
Captures raw input events into an in-memory buffer and flushes the buffer to disk on Stop(). Buffering avoids any file-I/O cost during gameplay — a 10-minute session at 60 fps with heavy input is well under 10 MB so the
Tag byte for each event. Frame marker is 0xFF (sentinel) so a corrupt / truncated file is easy to detect — readers will see a malformed payload before they trip a marker.
Free functions
Signature
Description
static_assert(sizeof(InputRecordingHeader) == 56, "InputRecordingHeader layout must stay stable for forward compat")
Single finger contact. Coordinates are in window pixels (already multiplied by window size) so game code doesn't have to know about SDL's normalised 0..1 finger coordinates. Delta is the per-frame movement vector (al
Per-frame touch state. SDL events arrive between Update() calls; Update() folds them into a stable snapshot and drops Ended/Canceled entries so each frame sees only currently-active contacts plus their final-frame Ended