Zeroes input below a lower threshold and remaps the rest to [0, 1].
More...
#include <modifier.hpp>
|
|
| DeadzoneModifier (const toml::table &t) |
| void | apply (Value &value, const EvalContext &) override |
| | Transforms a value in place.
|
| auto | name () const -> std::string_view override |
|
| IModifier (const IModifier &)=default |
|
auto | operator= (const IModifier &) -> IModifier &=default |
|
| static auto | fromToml (const toml::table &table) -> std::shared_ptr< IModifier > |
| | Builds a modifier from a TOML table keyed by its "name" field.
|
Zeroes input below a lower threshold and remaps the rest to [0, 1].
◆ apply()
Transforms a value in place.
- Parameters
-
| value | The value to modify; its type tag is preserved |
| ctx | Frame context, used by the key and delta-time modifiers |
Implements input::IModifier.
◆ name()
| auto input::DeadzoneModifier::name |
( |
| ) |
const -> std::string_view |
|
inlinenodiscardoverridevirtual |
The documentation for this class was generated from the following file: