23 #ifndef __PLUGINS_JOYSTICK_ACQUISITION_THREAD_H_ 24 #define __PLUGINS_JOYSTICK_ACQUISITION_THREAD_H_ 26 #include "bb_handler.h" 28 #include <core/threading/thread.h> 29 #include <aspect/logging.h> 30 #include <aspect/configurable.h> 32 #include <utils/math/types.h> 55 virtual void finalize();
58 bool lock_if_new_data();
61 char num_axes()
const;
62 char num_buttons()
const;
63 const char * joystick_name()
const;
64 unsigned int pressed_buttons()
const;
65 float * axis_values();
75 void init(std::string device_file);
77 void open_forcefeedback();
80 std::string __cfg_device_file;
84 unsigned int __axis_array_size;
87 char __joystick_name[128];
92 unsigned int __pressed_buttons;
JoystickForceFeedback * ff() const
Access force feedback of joystick.
Fawkes library namespace.
virtual void run()
Code to execute in the thread.
Handler class for joystick data.
Thread class encapsulation of pthreads.
Joystick acqusition thread for Linux joystick API.
Cause force feedback on a joystick.
Thread aspect to log output.
Thread aspect to access configuration data.
virtual void run()
Stub to see name in backtrace for easier debugging.
Mutex mutual exclusion lock.