21class TOAST_API Action {
44 auto uid() const noexcept -> toast::UID;
47 auto
name() const noexcept -> std::string_view;
74 auto
binds() const noexcept -> const std::vector<
Bind>& {
79 void updateTiming(
const SignalList& fired,
bool active,
float delta);
84 std::string m_function_name;
88 std::vector<Bind> m_binds;
89 std::vector<std::shared_ptr<IModifier>> m_modifiers;
92 float m_time_since_start = 0.0f;
93 float m_time_since_try = 0.0f;
94 float m_remaining_countdown = 0.0f;
96 Device m_device = Device::none;
97 bool m_was_active =
false;
98 bool m_was_trying =
false;
A bind maps one keycode to a set of triggers and per-bind modifiers.
Type-safe smart pointer for assets.
Definition core_types.hpp:149
ModifierKey
Bit flags for the keyboard modifier keys held during an input.
Definition keycodes.hpp:28
Device
Physical device a keycode belongs to.
Definition keycodes.hpp:18
Modifiers post-process a value in place before it reaches the action.
Per-frame context passed down to triggers and modifiers during evaluation.
Definition value.hpp:140
Concrete asset types for the Toast engine.
Unique identifier for everything that exists in our engine.
Value type shared by triggers, modifiers and actionsg.
ValueType
Value domain of an action or an input sample.
Definition value.hpp:22
@ axis_0d
boolean
Definition value.hpp:23