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
action.cpp File Reference
#include "./asw/modules/action.h"
#include <algorithm>
#include <unordered_map>
#include <vector>
Include dependency graph for action.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{action.cpp}::ActionData
 

Namespaces

namespace  anonymous_namespace{action.cpp}
 

Functions

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.
 
bool anonymous_namespace{action.cpp}::binding_is_pressed (const asw::input::ActionBinding &binding)
 
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).
 

Variables

std::unordered_map< std::string, ActionDataanonymous_namespace{action.cpp}::action_map