Binds a single keycode to its triggers and per-bind modifiers.
More...
#include <bind.hpp>
|
| struct | Result |
| | Outcome of evaluating a bind for one frame. More...
|
|
| static auto | fromToml (const toml::table &table, ValueType vt) -> Bind |
| | Builds a bind from a [[bind]] TOML table.
|
Binds a single keycode to its triggers and per-bind modifiers.
◆ evaluate()
Evaluates every trigger and applies per-bind modifiers.
- Parameters
-
| sample | The raw input for this bind's keycode this frame |
| ctx | Frame context |
- Returns
- The bind's contribution and the events its triggers fired
◆ fromToml()
| auto input::Bind::fromToml |
( |
const toml::table & | table, |
|
|
ValueType | vt ) -> Bind |
|
static |
Builds a bind from a [[bind]] TOML table.
- Parameters
-
| table | The bind table holding keycode, triggers and modifiers |
| vt | The value domain of the owning action |
- Returns
- The constructed bind
◆ keycode()
| auto input::Bind::keycode |
( |
| ) |
const -> const KeyCode & |
|
inlinenodiscardnoexcept |
- Returns
- The parsed keycode this bind reads
◆ keycodeString()
| auto input::Bind::keycodeString |
( |
| ) |
const -> std::string_view |
|
inlinenodiscardnoexcept |
- Returns
- The original keycode string
The documentation for this class was generated from the following files:
- engine/src/toast/input/bind.hpp
- engine/src/toast/input/bind.cpp