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

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{input.cpp}
 

Typedefs

using anonymous_namespace{input.cpp}::ControllerState
 Data structure for controller state, including button states and axis values.
 

Variables

std::array< SDL_Cursor *, asw::input::NUM_CURSORSanonymous_namespace{input.cpp}::cursors { nullptr }
 Active cursor stores the current active cursor. It is updated by the core.
 
std::vector< ControllerStateanonymous_namespace{input.cpp}::controller {}
 Global controller state.
 
std::unordered_map< SDL_JoystickID, uint32_t > anonymous_namespace{input.cpp}::controller_id_map {}
 Map of SDL_JoystickID to controller index in the controller vector.
 
asw::input::KeyState anonymous_namespace{input.cpp}::keyboard {}
 
asw::input::MouseState anonymous_namespace{input.cpp}::mouse {}
 
std::string anonymous_namespace{input.cpp}::text_input