class

FHapticMix

Signal → envelope → motor mix, reusable by any gameplay feature that wants pad feel without writing its own smoothing (vehicles, weapons, impacts). The game thread sets signal values or fires one-shot kicks, calls Evaluate once a frame and hands the frame to InputManager::SetGamepadHaptics, which applies i.RumbleScale and the release watchdog. Contributions combine as 1 - prod(1 - x): several strong signals saturate towards full force instead of clipping, and one signal alone passes through unchanged.

Module
Input
Header
#include "Input/GamepadHaptics.h"
Namespace
Mowo

Type aliases

AliasDescription
using FSignalHandle = int32_t

Properties

TypeNameDescription
static constexpr FSignalHandlekInvalidSignalDefault -1.

Public functions

ReturnsNameDescription
FSignalHandleAddSignal
FSignalHandleFindSignal
size_tGetSignalCount
voidSetSignalLevel the signal holds until changed (0..1 after the threshold remap).
boolSetSignal
voidKickA one-shot kick on top of the level: the signal reads at least value for holdSeconds, then releases through its envelope (a gear shift, a landing, a hit).
voidSetMasterGainOverall multiplier, e.g.
floatGetMasterGain
FGamepadHapticFrameEvaluateAdvances every envelope by deltaSeconds and returns the motor frame.
floatGetEnvelopeThe envelope level of one signal after the last Evaluate (for debugging and tests).
voidResetSilences every signal and envelope; the signal table stays.

Function details

AddSignal

C++
FSignalHandle AddSignal(const FHapticSignalDesc& desc)

FindSignal

C++
FSignalHandle FindSignal(std::string_view name) const

GetSignalCount

C++
size_t GetSignalCount() const

SetSignal

C++
void SetSignal(FSignalHandle signal, float value)

Level the signal holds until changed (0..1 after the threshold remap).

SetSignal

C++
bool SetSignal(std::string_view name, float value)

Kick

C++
void Kick(FSignalHandle signal, float value, float holdSeconds)

A one-shot kick on top of the level: the signal reads at least value for holdSeconds, then releases through its envelope (a gear shift, a landing, a hit).

SetMasterGain

C++
void SetMasterGain(float gain)

Overall multiplier, e.g. a per-feature "haptics strength" option. i.RumbleScale is applied later by InputManager, on top of this.

GetMasterGain

C++
float GetMasterGain() const

Evaluate

C++
FGamepadHapticFrame Evaluate(float deltaSeconds)

Advances every envelope by deltaSeconds and returns the motor frame.

GetEnvelope

C++
float GetEnvelope(FSignalHandle signal) const

The envelope level of one signal after the last Evaluate (for debugging and tests).

Reset

C++
void Reset()

Silences every signal and envelope; the signal table stays.

Generated from Input/GamepadHaptics.h via input.json · Dec 5, 2026Version 1.1.0