class
FControlRebinding
- Module
- Game
- Header
#include "Game/FControlRebinding.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
bool | RebindKey | Point mappingIndex at a keyboard key / mouse button / gamepad button. |
bool | RebindMouseButton | |
bool | RebindGamepadButton | |
std::string | DescribeSource | Human-readable label for the mapping's current hardware source, for a settings row ("Space", "Left Mouse", "Gamepad South", "Mouse X", ...). |
bool | SaveToProject | Persist the edited context. |
Ref<InputMappingContextAsset> | LoadFromProject | Load a mapping context by project reference through the global asset manager / active project. |
void | Reapply | Re-apply the context to a player's subsystem so a fresh rebind takes effect without a restart (Remove then Add at the asset's priority). |
Function details
RebindKey
C++
static bool RebindKey(InputMappingContextAsset& imc, int32_t mappingIndex, KeyCode key)Point mappingIndex at a keyboard key / mouse button / gamepad button. Returns false when the index is out of range.
RebindMouseButton
C++
static bool RebindMouseButton(InputMappingContextAsset& imc, int32_t mappingIndex, MouseButton button)RebindGamepadButton
C++
static bool RebindGamepadButton(InputMappingContextAsset& imc, int32_t mappingIndex, GamepadButton button)DescribeSource
C++
static std::string DescribeSource(const InputMappingContextAsset& imc, int32_t mappingIndex)Human-readable label for the mapping's current hardware source, for a settings row ("Space", "Left Mouse", "Gamepad South", "Mouse X", ...).
SaveToProject
C++
static bool SaveToProject(const InputMappingContextAsset& imc, const std::string& contentRef)Persist the edited context. contentRef is a project reference ("Content/Input/IMC_Default.inputcontext"); resolved through the active project when one is open, otherwise treated as a direct path.
LoadFromProject
C++
static Ref<InputMappingContextAsset> LoadFromProject(const std::string& contentRef)Load a mapping context by project reference through the global asset manager / active project. Null when nothing is resolvable (headless).
Reapply
C++
static void Reapply(MEnhancedInputSubsystem& subsystem, const InputMappingContextAsset& imc)Re-apply the context to a player's subsystem so a fresh rebind takes effect without a restart (Remove then Add at the asset's priority).
Generated from Game/FControlRebinding.h via game.json · Nov 5, 2026Version 1.0.0