ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
anonymous_namespace{action.cpp} Namespace Reference

Classes

struct  ActionData
 

Functions

bool binding_is_down (const asw::input::ActionBinding &binding, float &out_strength)
 Returns true if the binding is currently active, and updates out_strength.
 
bool binding_is_pressed (const asw::input::ActionBinding &binding)
 
bool binding_is_released (const asw::input::ActionBinding &binding)
 Returns true if the binding was released this frame (digital sources only).
 

Variables

std::unordered_map< std::string, ActionDataaction_map
 

Function Documentation

◆ binding_is_down()

bool anonymous_namespace{action.cpp}::binding_is_down ( const asw::input::ActionBinding & binding,
float & out_strength )

Returns true if the binding is currently active, and updates out_strength.

Definition at line 28 of file action.cpp.

◆ binding_is_pressed()

bool anonymous_namespace{action.cpp}::binding_is_pressed ( const asw::input::ActionBinding & binding)

Returns true if the binding was pressed this frame (digital sources only). Axis bindings return false here — their transitions are handled via prev_down.

Definition at line 73 of file action.cpp.

◆ binding_is_released()

bool anonymous_namespace{action.cpp}::binding_is_released ( const asw::input::ActionBinding & binding)

Returns true if the binding was released this frame (digital sources only).

Definition at line 97 of file action.cpp.

Variable Documentation

◆ action_map

std::unordered_map<std::string, ActionData> anonymous_namespace{action.cpp}::action_map

Definition at line 21 of file action.cpp.