class

FPlatformActionInput

Steam Input (or any platform with action-based controller input) as the gamepad half of InputActionSystem. Input contexts are action sets: the bottom enabled context is the active set and every context above it a layer, so pushing the "Scanner" context over "Gameplay" activates the Scanner layer in the player's Steam configuration. Engine action names are the Steam action names (the generated in_game_actions.vdf uses them).

Module
Game
Header
#include "Game/PlatformActionInput.h"
Namespace
Mowo

Active only when the project opts in (Project Settings > Platform > Steam Input) and the platform reports a controller under its control; otherwise the engine reads the pad through SDL as before.

Public functions

ReturnsNameDescription
FPlatformActionInput&Get
voidInstallInstalls the bridge on InputActionSystem (once, at engine start).
voidUninstall
voidSetServiceOverrideThe service to talk to; null follows FOnlineServices::Primary().
voidSetEnabledOverrideForces the project gate (platform.steamInputEnabled) for tests.
boolIsActive
voidBeginFrame
boolReadAction
const std::vector<std::string>&GetActiveLayers

Function details

Get

C++
static FPlatformActionInput& Get()

Install

C++
static void Install()

Installs the bridge on InputActionSystem (once, at engine start).

Uninstall

C++
static void Uninstall()

SetServiceOverride

C++
void SetServiceOverride(IOnlineService* service)

The service to talk to; null follows FOnlineServices::Primary(). Tests hand it a fake.

SetEnabledOverride

C++
void SetEnabledOverride(int32_t enabled)

Forces the project gate (platform.steamInputEnabled) for tests.

IsActive

C++
bool IsActive() const override

BeginFrame

C++
void BeginFrame(const std::vector<std::string>& enabledContexts) override

ReadAction

C++
bool ReadAction(const std::string& actionName, InputActionType type, Vec3& outValue) override

GetActiveLayers

C++
const std::vector<std::string>& GetActiveLayers() const
Generated from Game/PlatformActionInput.h via game.json · Nov 5, 2026Version 1.0.0