supertux
Public Member Functions | Protected Attributes | List of all members
Controller Class Reference
Inheritance diagram for Controller:
CodeController

Public Member Functions

virtual void update ()
 
void set_control (Control control, bool value)
 
bool hold (Control control) const
 returns true if the control is pressed down
 
bool pressed (Control control) const
 returns true if the control has just been pressed down this frame
 
bool released (Control control) const
 returns true if the control has just been released this frame
 
void reset ()
 

Protected Attributes

bool m_controls [static_cast< int >(Control::CONTROLCOUNT)]
 current control status
 
bool m_old_controls [static_cast< int >(Control::CONTROLCOUNT)]
 control status at last frame
 

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