|  | Gamedev Framework (gf)
    0.19.0
    A C++17 framework for 2D games | 
A physical control. More...
#include <gf/Control.h>

| Public Member Functions | |
| Control () | |
| Construct a control.  More... | |
| virtual | ~Control () | 
| Destroy the control.  More... | |
| bool | isActive () const | 
| Check if the control is active.  More... | |
| void | setActive (bool active=true) | 
| Change the active state of the control.  More... | |
| void | reset () | 
| Desactivate the control.  More... | |
| virtual void | processEvent (const Event &event)=0 | 
| Update the state of the control thanks to an event.  More... | |
A physical control.
| 
 | inline | 
Construct a control.
| 
 | virtual | 
Destroy the control.
| 
 | inline | 
| 
 | pure virtual | 
Update the state of the control thanks to an event.
| event | The event to update the control. | 
Implemented in gf::KonamiGamepadControl, gf::KonamiKeyboardControl, gf::CloseControl, gf::GamepadAxisControl, gf::GamepadButtonControl, gf::MouseButtonControl, gf::ScancodeKeyControl, and gf::KeycodeKeyControl.
| 
 | inline | 
Desactivate the control.
This call is equivalent to calling setActive() with false.
| 
 | inline | 
Change the active state of the control.
| active | The new state of the control. | 
 1.8.13
 1.8.13