supertux
Public Member Functions | List of all members
CodeController Class Referencefinal

This is a dummy controller that doesn't react to any user input but should be controlled by code. More...

#include <codecontroller.hpp>

Inheritance diagram for CodeController:
Controller

Public Member Functions

virtual void update () override
 
void press (Control c, bool pressed=true)
 
- Public Member Functions inherited from Controller
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 ()
 

Additional Inherited Members

- Protected Attributes inherited from Controller
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
 

Detailed Description

This is a dummy controller that doesn't react to any user input but should be controlled by code.


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