JoystickBlackBoardHandler Class Reference
Handler class for joystick data. More...
#include <acquisition_thread.h>
Inheritance diagram for JoystickBlackBoardHandler:

Public Member Functions | |
| virtual | ~JoystickBlackBoardHandler () |
| Virtual empty destructor. | |
| virtual void | joystick_changed (unsigned int pressed_buttons, float *axis_x_values, float *axis_y_values)=0 |
| Joystick data changed. | |
| virtual void | joystick_plugged (char num_axes, char num_buttons)=0 |
| A (new) joystick has been plugged in. | |
| virtual void | joystick_unplugged ()=0 |
| The joystick has been unplugged and is no longer available. | |
Detailed Description
Handler class for joystick data.This interface allows to plug a generic handler to the JoystickAcquisitionThread via the alternative constructor. This can be used to directly instantiate the acquisition thread outside of Fawkes.
Definition at line 39 of file acquisition_thread.h.
Constructor & Destructor Documentation
| JoystickBlackBoardHandler::~JoystickBlackBoardHandler | ( | ) | [virtual] |
Member Function Documentation
| void JoystickBlackBoardHandler::joystick_changed | ( | unsigned int | pressed_buttons, | |
| float * | axis_x_values, | |||
| float * | axis_y_values | |||
| ) | [pure virtual] |
Joystick data changed.
- Parameters:
-
pressed_buttons the new pressed_buttons array axis_x_values array of X axis values, the length is at least num_axes() axis_y_values array of Y axis values, the length is at least num_axes()
Implemented in JoystickBlackBoardPoster.
Referenced by JoystickAcquisitionThread::loop().
| void JoystickBlackBoardHandler::joystick_plugged | ( | char | num_axes, | |
| char | num_buttons | |||
| ) | [pure virtual] |
A (new) joystick has been plugged in.
- Parameters:
-
num_axes number of axes num_buttons number of buttons
Implemented in JoystickBlackBoardPoster.
| void JoystickBlackBoardHandler::joystick_unplugged | ( | ) | [pure virtual] |
The joystick has been unplugged and is no longer available.
Implemented in JoystickBlackBoardPoster.
Referenced by JoystickAcquisitionThread::loop().
The documentation for this class was generated from the following files:
- src/plugins/joystick/acquisition_thread.h
- src/plugins/joystick/acquisition_thread.cpp

