#include <controllerSetup.hpp>
|
void | BindAxis (int axis, std::function< void(int, int)> func) |
| Binds the axis index with the callback function. More...
|
|
void | BindButton (int button, std::function< void(int, bool)> func) |
| Binds the button index with the callback function. More...
|
|
| Binder () |
|
void | CallAxisCallback (int axis, int value) |
| Calls the callback assiociated with the axis index. More...
|
|
void | CallButtonCallback (int button, bool state) |
| Calls the callback assiociated with the button index. More...
|
|
◆ Binder()
◆ BindAxis()
void BindAxis |
( |
int |
axis, |
|
|
std::function< void(int, int)> |
func |
|
) |
| |
Binds the axis index with the callback function.
- Parameters
-
axis | The axis that will be bound |
func | The function that will be bound |
◆ BindButton()
void BindButton |
( |
int |
button, |
|
|
std::function< void(int, bool)> |
func |
|
) |
| |
Binds the button index with the callback function.
- Parameters
-
button | The button that will be bound |
func | The function that will be bound |
◆ CallAxisCallback()
void CallAxisCallback |
( |
int |
axis, |
|
|
int |
value |
|
) |
| |
Calls the callback assiociated with the axis index.
- Parameters
-
axis | The axis index |
value | The value of the axis |
◆ CallButtonCallback()
void CallButtonCallback |
( |
int |
button, |
|
|
bool |
state |
|
) |
| |
Calls the callback assiociated with the button index.
- Parameters
-
button | The button |
state | The state of the button |
◆ axisCallback
std::array<std::function<void(int, int)>, 8> axisCallback |
|
private |
◆ buttonsCallback
std::array<std::function<void(int, bool)>, 11> buttonsCallback |
|
private |
The documentation for this class was generated from the following file: