Encapsulates all data relevant to a sampled joystick event.
More...
#include <joystick.hpp>
|
bool | isAxis () |
| Returns true if this event is the result of an axis movement. More...
|
|
bool | isButton () |
| Returns true if this event is the result of a button press. More...
|
|
bool | isInitialState () |
| Returns true if this event is part of the initial state obtained when the joystick is first connected to. More...
|
|
|
std::ostream & | operator<< (std::ostream &os, const JoystickEvent &e) |
| The ostream inserter needs to be a friend so it can access the internal data structures. More...
|
|
Encapsulates all data relevant to a sampled joystick event.
◆ isAxis()
Returns true if this event is the result of an axis movement.
◆ isButton()
Returns true if this event is the result of a button press.
◆ isInitialState()
Returns true if this event is part of the initial state obtained when the joystick is first connected to.
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const JoystickEvent & |
e |
|
) |
| |
|
friend |
The ostream inserter needs to be a friend so it can access the internal data structures.
◆ MAX_AXES_VALUE
const short MAX_AXES_VALUE = 32767 |
|
static |
Maximum value of axes range.
◆ MIN_AXES_VALUE
const short MIN_AXES_VALUE = -32768 |
|
static |
Minimum value of axes range.
◆ number
◆ time
The timestamp of the event, in milliseconds.
◆ type
◆ value
The value associated with this joystick event.
For buttons this will be either 1 (down) or 0 (up). For axes, this will range between MIN_AXES_VALUE and MAX_AXES_VALUE.
The documentation for this class was generated from the following file:
- ros_workspace/src/manager/src/controller/joystick/joystick.hpp