|
Toast Engine
|
Public Types | |
| using | Sampler = std::function<InputSample(const KeyCode&)> |
| Supplies the current raw input for a keycode; provided by the input system. | |
Public Member Functions | |
| auto | evaluate (const Sampler &sampler, const EvalContext &ctx) -> SignalList |
| Evaluates every bind, accumulates the value and updates timing state. | |
| auto | uid () const noexcept -> toast::UID |
| auto | name () const noexcept -> std::string_view |
| auto | functionName () const noexcept -> std::string_view |
| auto | valueType () const noexcept -> ValueType |
| auto | value () const noexcept -> const Value & |
| auto | modifiers () const noexcept -> ModifierKey |
| auto | device () const noexcept -> Device |
| auto | timeSinceStart () const noexcept -> float |
| auto | timeSinceTry () const noexcept -> float |
| auto | remainingCountdown () const noexcept -> float |
| auto | binds () const noexcept -> const std::vector< Bind > & |
Static Public Member Functions | |
| static auto | fromAsset (assets::Handle< assets::Action > handle) -> std::unique_ptr< Action > |
| Builds a runtime action from its asset. | |
|
inlinenodiscardnoexcept |
<

|
nodiscardnoexcept |
| auto input::Action::evaluate | ( | const Sampler & | sampler, |
| const EvalContext & | ctx ) -> SignalList |
Evaluates every bind, accumulates the value and updates timing state.
| sampler | Callback returning the raw input for a given keycode |
| ctx | Frame context |
|
static |
Builds a runtime action from its asset.
| handle | Handle to the loaded asset::Action; kept alive for the action's lifetime |
|
nodiscardnoexcept |
|
nodiscardnoexcept |

|
nodiscardnoexcept |
|
nodiscardnoexcept |
|
nodiscardnoexcept |
|
nodiscardnoexcept |
|
nodiscardnoexcept |
|
nodiscardnoexcept |
|
nodiscardnoexcept |