Toast Engine
Loading...
Searching...
No Matches
modifier.hpp File Reference

Modifiers post-process a value in place before it reaches the action. More...

#include "parse_util.hpp"
#include "value.hpp"
#include <cmath>
#include <glm/glm.hpp>
#include <string_view>
#include <toast/time.hpp>
#include <toml++/toml.hpp>
Include dependency graph for modifier.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  input::IModifier
 Polymorphic base for all modifiers. More...
class  input::DeadzoneModifier
 Zeroes input below a lower threshold and remaps the rest to [0, 1]. More...
class  input::InvertModifier
 Negates the configured axes. More...
class  input::ExponentialModifier
 Converts a linear value to an exponential curve, preserving sign. More...
class  input::ScaleModifier
 Multiplies each axis by a constant. More...
class  input::ScaleByDeltaTimeModifier
 Multiplies each axis by the frame delta time. More...
class  input::SmoothModifier
 Smooths each axis toward its target with a lerp. More...
class  input::KeyModifier
 Zeroes it unless every required keyboard modifier is held. More...

Functions

auto input::detail::modifierHeld (ModifierKey mask, ModifierKey key) -> bool

Detailed Description

Modifiers post-process a value in place before it reaches the action.

Author
Xein
Date
13 Dec 2025