supertux
Public Member Functions | Public Attributes | Friends | List of all members
InputManager Class Referencefinal
Inheritance diagram for InputManager:
Inheritance graph
[legend]
Collaboration diagram for InputManager:
Collaboration graph
[legend]

Public Member Functions

 InputManager (KeyboardConfig &keyboard_config, JoystickConfig &joystick_config)
 
void process_event (const SDL_Event &event)
 
void update ()
 
void reset ()
 
void use_game_controller (bool v)
 
bool use_game_controller () const
 
const Controllerget_controller (int player_id=0) const
 
Controllerget_controller (int player_id=0)
 
int get_num_users () const
 
void push_user ()
 
void pop_user ()
 
void on_player_removed (int player_id)
 
bool has_corresponsing_controller (int player_id) const
 

Public Attributes

bool & m_use_game_controller
 
std::unique_ptr< KeyboardManagerkeyboard_manager
 
std::unique_ptr< JoystickManagerjoystick_manager
 
std::unique_ptr< GameControllerManagergame_controller_manager
 
std::unordered_map< int, bool > m_uses_keyboard
 True if the given player is on the keyboard and plays without a controller.
 

Friends

class KeyboardMenu
 
class JoystickMenu
 

Additional Inherited Members

- Static Public Member Functions inherited from Currenton< InputManager >
static InputManagercurrent ()
 

The documentation for this class was generated from the following files: