Fawkes API  Fawkes Development Version
bb_handler.cpp
00001 
00002 /***************************************************************************
00003  *  bb_handler.cpp - Joystick blackboard handler
00004  *
00005  *  Created: Tue Apr 26 18:27:29 2011
00006  *  Copyright  2006-2011  Tim Niemueller [www.niemueller.de]
00007  *
00008  ****************************************************************************/
00009 
00010 /*  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU Library General Public License for more details.
00019  *
00020  *  Read the full text in the LICENSE.GPL file in the doc directory.
00021  */
00022 
00023 #include "bb_handler.h"
00024 
00025 /** @class JoystickBlackBoardHandler "acquisition_thread.h"
00026  * Handler class for joystick data.
00027  * This interface allows to plug a generic handler to the
00028  * JoystickAcquisitionThread via the alternative constructor. This can be
00029  * used to directly instantiate the acquisition thread outside of Fawkes.
00030  * @author Tim Niemueller
00031  *
00032  * @fn void JoystickBlackBoardHandler::joystick_changed(unsigned int pressed_buttons, float *axis_values) = 0
00033  * Joystick data changed.
00034  * @param pressed_buttons the new pressed_buttons array
00035  * @param axis_values array of axis values, the length is at least num_axes()
00036  *
00037  * @fn void JoystickBlackBoardHandler::joystick_plugged(char num_axes, char num_buttons)
00038  * A (new) joystick has been plugged in
00039  * @param num_axes number of axes
00040  * @param num_buttons number of buttons
00041  *
00042  * @fn void JoystickBlackBoardHandler::joystick_unplugged()
00043  * The joystick has been unplugged and is no longer available.
00044  */
00045 
00046 /** Virtual empty destructor. */
00047 JoystickBlackBoardHandler::~JoystickBlackBoardHandler()
00048 {
00049 }