Input

Input module API reference: 18 headers · 48 types · 708 symbols.

Generated from input.json · Nov 2, 2026Version 1.0.0
Build name
MowoEngine.Input
Source
Engine/Source/Runtime/Input/Public
Category
Runtime
Contents
18 headers · 48 types · 708 symbols

Input/GamepadInput.h

KindTypeSummary
enumGamepadButtonGamepad button enum matching SDL3 layout
enumGamepadAxisGamepad axis enum matching SDL3 layout
classGamepadInput
structGamepadInput::SensorSampleMotion 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

Input/InputAction.h

KindTypeSummary
enumInputActionType
enumEInputAccumulationHow 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
enumInputActionPhase
enumETriggerEvent
enumInputSourceType
enumEInputModifierType
enumEInputSwizzleOrderSwizzle keeps its axis order in param0 as 1-based codes so a modifier built without one (param0 = 1) stays the original X/Y swap.
structInputModifier
enumEInputTriggerType
structInputTrigger
structInputBinding
structInputActionState
structInputAction

Free functions

SignatureDescription
using InputActionCallback = std::function<void(const std::string& actionName, const InputActionState& state)>

Input/InputActionEvents.h

KindTypeSummary
classInputActionEventFired every frame an action is active (Started, Performed, or Canceled)
classInputActionStartedEventFired once when an action transitions to Started phase
classInputActionCanceledEventFired once when an action transitions to Canceled phase

Input/InputActionMap.h

KindTypeSummary
classInputActionMap

Input/InputActionSource.h

KindTypeSummary
classIInputActionSourceA 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

Input/InputActionSystem.h

KindTypeSummary
structFInputBindingConflictTwo 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.
structFInputActionDebugRowOne evaluated action for the input debug overlay / tooling.
classInputActionSystemSingleton that evaluates input actions each frame based on raw InputManager state. Manages a stack of InputContexts with priority ordering.

Input/InputBindingsConfig.h

KindTypeSummary
structFInputBindingOverrideOne 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
classInputBindingsConfig

Input/InputCodeGenerator.h

Input/InputContext.h

KindTypeSummary
classInputContext

Input/InputManager.h

KindTypeSummary
enumEInputModeUE-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
enumEInputDeviceThe 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.
classInputManager
enumInputManager::ECursorConfineCursor confinement (separate from BOTH).

Input/InputPlayback.h

KindTypeSummary
classInputPlaybackReads 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

Input/InputRecorder.h

KindTypeSummary
classInputRecorderCaptures 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

Input/InputRecording.h

KindTypeSummary
structInputRecordingHeaderOn-disk format for recorded input streams (.mirec).
enumInputEventTypeTag 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

SignatureDescription
static_assert(sizeof(InputRecordingHeader) == 56, "InputRecordingHeader layout must stay stable for forward compat")
inline constexpr uint32_t InputRecordingVersion = 1

Input/KeyCode.h

KindTypeSummary
enumKeyCodeKeyCode enum with VK mappings for common keys
classFKeyCodeUtils

Input/KeyboardInput.h

KindTypeSummary
classKeyboardInput

Input/MouseButton.h

KindTypeSummary
enumMouseButton

Input/MouseInput.h

KindTypeSummary
classMouseInput

Input/TouchInput.h

KindTypeSummary
enumTouchPhaseLifecycle of a touch point. Each finger transitions: None → Began → (Moved | Stationary)* → (Ended | Canceled) → removed
structTouchPointSingle 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
classTouchInputPer-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

Page feedback

Was this page helpful?