Fawkes API  Fawkes Development Version
JoystickBlackBoardHandler Class Referenceabstract

Handler class for joystick data. More...

#include "acquisition_thread.h"

Inheritance diagram for JoystickBlackBoardHandler:

Public Member Functions

virtual ~JoystickBlackBoardHandler ()
 Virtual empty destructor. More...
 
virtual void joystick_changed (unsigned int pressed_buttons, float *axis_values)=0
 Joystick data changed. More...
 
virtual void joystick_plugged (char num_axes, char num_buttons)=0
 A (new) joystick has been plugged in. More...
 
virtual void joystick_unplugged ()=0
 The joystick has been unplugged and is no longer available. More...
 

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.

Author
Tim Niemueller

Definition at line 26 of file bb_handler.h.

Constructor & Destructor Documentation

◆ ~JoystickBlackBoardHandler()

JoystickBlackBoardHandler::~JoystickBlackBoardHandler ( )
virtual

Virtual empty destructor.

Definition at line 47 of file bb_handler.cpp.

Member Function Documentation

◆ joystick_changed()

void JoystickBlackBoardHandler::joystick_changed ( unsigned int  pressed_buttons,
float *  axis_values 
)
pure virtual

Joystick data changed.

Parameters
pressed_buttonsthe new pressed_buttons array
axis_valuesarray of axis values, the length is at least num_axes()

Implemented in JoystickRemoteBlackBoardPoster.

Referenced by JoystickAcquisitionThread::loop().

◆ joystick_plugged()

void JoystickBlackBoardHandler::joystick_plugged ( char  num_axes,
char  num_buttons 
)
pure virtual

A (new) joystick has been plugged in.

Parameters
num_axesnumber of axes
num_buttonsnumber of buttons

Implemented in JoystickRemoteBlackBoardPoster.

Referenced by JoystickAcquisitionThread::init().

◆ joystick_unplugged()

void JoystickBlackBoardHandler::joystick_unplugged ( )
pure virtual

The joystick has been unplugged and is no longer available.

Implemented in JoystickRemoteBlackBoardPoster.

Referenced by JoystickAcquisitionThread::loop().


The documentation for this class was generated from the following files: