![]() |
Gamedev Framework (gf)
0.3.0
A C++11 framework for 2D games
|
A gamepad axis control. More...
#include <gf/Controls.h>

Public Member Functions | |
| GamepadAxisControl (GamepadId id, GamepadAxis axis, GamepadAxisDirection dir) | |
| Construct a gamepad axis control. More... | |
| virtual void | processEvent (const Event &event) override |
| Update the state of the control thanks to an event. More... | |
Public Member Functions inherited from gf::Control | |
| Control () | |
| Construct a control. More... | |
| virtual | ~Control () |
| Destroy the control. More... | |
| bool | isActive () |
| 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... | |
A gamepad axis control.
| gf::GamepadAxisControl::GamepadAxisControl | ( | GamepadId | id, |
| GamepadAxis | axis, | ||
| GamepadAxisDirection | dir | ||
| ) |
Construct a gamepad axis control.
| id | The id of the gamepad |
| axis | The axis of the gamepad |
| dir | The direction of the axis |
|
overridevirtual |
Update the state of the control thanks to an event.
| event | The event to update the control. |
Implements gf::Control.
1.8.8