class

MInputStatics

Input queries for scripting. The Visual Script node catalogue is built by walking MClassRegistry, so these MFUNCTIONs are the visual-scripting input surface — before this class existed, Visual Script graphs could not read input at all (InputActionSystem is plain C++, invisible to reflection). Everything routes through the active enhanced-input contexts, so a graph sees exactly what MPlayerInput's C++ bindings see, rebinds included.

Module
Game
Header
#include "Game/MInputStatics.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Public functions

ReturnsNameDescription
boolIsActionActiveLevel-triggered: the action is actuated right now (a held key/stick).
boolWasActionTriggeredEdge-triggered, per-frame (UE5 ETriggerEvent): use these from Tick graphs — a Hold/Tap/Combo trigger fires Triggered exactly on its configured condition, not on raw actuation.
boolWasActionStarted
boolWasActionCompleted
boolWasActionCanceled
floatGetActionValue
Vec2GetActionValue2D
Vec3GetActionValue3D
voidPushContextContext stack management — a pause-menu graph pushes its own context the same way C++ gameplay does.
voidPopContext
voidEnableContext
boolIsGamepadActiveDevice awareness, for prompts ("press A" vs "press E") and layout switches.
std::stringGetLastInputDeviceName
std::stringGetGamepadFamilyButton prompts.
std::stringGetGamepadGlyphPath
std::stringGetActionPromptGlyphButton prompts by ACTION, for HUD hints ("[RT] Scan").
std::stringGetActionPromptText
boolShowOnScreenKeyboardThe platform on-screen keyboard (Steam Deck, Big Picture).
boolIsOnScreenKeyboardShowing
std::stringGetOnScreenKeyboardText
boolWasOnScreenKeyboardSubmitted
Vec3GetGamepadGyroPad motion and feedback.
Vec3GetGamepadAccel
boolHasGamepadGyro
boolSetGamepadLightColor
boolRumbleGamepad
boolButtonFromName

Function details

IsActionActive

C++
bool IsActionActive(const std::string& actionName) const

Level-triggered: the action is actuated right now (a held key/stick).

WasActionTriggered

C++
bool WasActionTriggered(const std::string& actionName) const

Edge-triggered, per-frame (UE5 ETriggerEvent): use these from Tick graphs — a Hold/Tap/Combo trigger fires Triggered exactly on its configured condition, not on raw actuation.

WasActionStarted

C++
bool WasActionStarted(const std::string& actionName) const

WasActionCompleted

C++
bool WasActionCompleted(const std::string& actionName) const

WasActionCanceled

C++
bool WasActionCanceled(const std::string& actionName) const

GetActionValue

C++
float GetActionValue(const std::string& actionName) const

GetActionValue2D

C++
Vec2 GetActionValue2D(const std::string& actionName) const

GetActionValue3D

C++
Vec3 GetActionValue3D(const std::string& actionName) const

PushContext

C++
void PushContext(const std::string& contextName)

Context stack management — a pause-menu graph pushes its own context the same way C++ gameplay does.

PopContext

C++
void PopContext(const std::string& contextName)

EnableContext

C++
void EnableContext(const std::string& contextName, bool enabled)

IsGamepadActive

C++
bool IsGamepadActive() const

Device awareness, for prompts ("press A" vs "press E") and layout switches. Family names: KeyboardMouse / GamepadXbox / GamepadPlayStation / GamepadNintendo / GamepadGeneric / Unknown.

GetLastInputDeviceName

C++
std::string GetLastInputDeviceName() const

GetGamepadFamily

C++
std::string GetGamepadFamily() const

Button prompts. The family the platform sees (SteamDeck / Xbox / PlayStation / Switch / SteamController), falling back to the last device's family; and the platform's glyph image for a button named by position — A B X Y (as on Xbox), LB RB LT RT, Start, Back, LS RS, DPadUp/Down/Left/Right — empty when the platform ships none.

GetGamepadGlyphPath

C++
std::string GetGamepadGlyphPath(const std::string& button) const

GetActionPromptGlyph

C++
std::string GetActionPromptGlyph(const std::string& actionName) const

Button prompts by ACTION, for HUD hints ("[RT] Scan"). With Steam Input in control: the glyph image of the input the player bound in Steam and its name ("Right Trigger"). Otherwise the glyph is empty (the UI uses its own art by GetGamepadFamily) and the text is the action's binding for the last used device ("E", "RightTrigger").

GetActionPromptText

C++
std::string GetActionPromptText(const std::string& actionName) const

ShowOnScreenKeyboard

C++
bool ShowOnScreenKeyboard(const std::string& description, const std::string& existingText, bool password)

The platform on-screen keyboard (Steam Deck, Big Picture). The text arrives when it closes: poll IsOnScreenKeyboardShowing, then read GetOnScreenKeyboardText / WasOnScreenKeyboardSubmitted.

IsOnScreenKeyboardShowing

C++
bool IsOnScreenKeyboardShowing() const

GetOnScreenKeyboardText

C++
std::string GetOnScreenKeyboardText() const

WasOnScreenKeyboardSubmitted

C++
bool WasOnScreenKeyboardSubmitted() const

GetGamepadGyro

C++
Vec3 GetGamepadGyro(int32_t padIndex) const

Pad motion and feedback. Gyro is angular velocity in rad/s, the accelerometer m/s^2; both read zero on a pad without the sensor (check HasGamepadGyro first). The light colour is 0..1 RGB; it and the rumble return false on a pad that lacks the hardware.

GetGamepadAccel

C++
Vec3 GetGamepadAccel(int32_t padIndex) const

HasGamepadGyro

C++
bool HasGamepadGyro(int32_t padIndex) const

SetGamepadLightColor

C++
bool SetGamepadLightColor(int32_t padIndex, float red, float green, float blue) const

RumbleGamepad

C++
bool RumbleGamepad(int32_t padIndex, float lowFrequency, float highFrequency, int32_t durationMs) const

ButtonFromName

C++
static bool ButtonFromName(const std::string& name, uint8_t& outButton)
Generated from Game/MInputStatics.h via game.json · Nov 5, 2026Version 1.0.0