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
| Returns | Name | Description |
|---|---|---|
bool | IsActionActive | Level-triggered: the action is actuated right now (a held key/stick). |
bool | WasActionTriggered | 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. |
bool | WasActionStarted | |
bool | WasActionCompleted | |
bool | WasActionCanceled | |
float | GetActionValue | |
Vec2 | GetActionValue2D | |
Vec3 | GetActionValue3D | |
void | PushContext | Context stack management — a pause-menu graph pushes its own context the same way C++ gameplay does. |
void | PopContext | |
void | EnableContext | |
bool | IsGamepadActive | Device awareness, for prompts ("press A" vs "press E") and layout switches. |
std::string | GetLastInputDeviceName | |
std::string | GetGamepadFamily | Button prompts. |
std::string | GetGamepadGlyphPath | |
std::string | GetActionPromptGlyph | Button prompts by ACTION, for HUD hints ("[RT] Scan"). |
std::string | GetActionPromptText | |
bool | ShowOnScreenKeyboard | The platform on-screen keyboard (Steam Deck, Big Picture). |
bool | IsOnScreenKeyboardShowing | |
std::string | GetOnScreenKeyboardText | |
bool | WasOnScreenKeyboardSubmitted | |
Vec3 | GetGamepadGyro | Pad motion and feedback. |
Vec3 | GetGamepadAccel | |
bool | HasGamepadGyro | |
bool | SetGamepadLightColor | |
bool | RumbleGamepad | |
bool | ButtonFromName |
Function details
IsActionActive
bool IsActionActive(const std::string& actionName) constLevel-triggered: the action is actuated right now (a held key/stick).
WasActionTriggered
bool WasActionTriggered(const std::string& actionName) constEdge-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
bool WasActionStarted(const std::string& actionName) constWasActionCompleted
bool WasActionCompleted(const std::string& actionName) constWasActionCanceled
bool WasActionCanceled(const std::string& actionName) constGetActionValue
float GetActionValue(const std::string& actionName) constGetActionValue2D
Vec2 GetActionValue2D(const std::string& actionName) constGetActionValue3D
Vec3 GetActionValue3D(const std::string& actionName) constPushContext
void PushContext(const std::string& contextName)Context stack management — a pause-menu graph pushes its own context the same way C++ gameplay does.
PopContext
void PopContext(const std::string& contextName)EnableContext
void EnableContext(const std::string& contextName, bool enabled)IsGamepadActive
bool IsGamepadActive() constDevice awareness, for prompts ("press A" vs "press E") and layout switches. Family names: KeyboardMouse / GamepadXbox / GamepadPlayStation / GamepadNintendo / GamepadGeneric / Unknown.
GetLastInputDeviceName
std::string GetLastInputDeviceName() constGetGamepadFamily
std::string GetGamepadFamily() constButton 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
std::string GetGamepadGlyphPath(const std::string& button) constGetActionPromptGlyph
std::string GetActionPromptGlyph(const std::string& actionName) constButton 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
std::string GetActionPromptText(const std::string& actionName) constShowOnScreenKeyboard
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
bool IsOnScreenKeyboardShowing() constGetOnScreenKeyboardText
std::string GetOnScreenKeyboardText() constWasOnScreenKeyboardSubmitted
bool WasOnScreenKeyboardSubmitted() constGetGamepadGyro
Vec3 GetGamepadGyro(int32_t padIndex) constPad 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
Vec3 GetGamepadAccel(int32_t padIndex) constHasGamepadGyro
bool HasGamepadGyro(int32_t padIndex) constSetGamepadLightColor
bool SetGamepadLightColor(int32_t padIndex, float red, float green, float blue) constRumbleGamepad
bool RumbleGamepad(int32_t padIndex, float lowFrequency, float highFrequency, int32_t durationMs) constButtonFromName
static bool ButtonFromName(const std::string& name, uint8_t& outButton)