29 #ifndef _Core_JoyStick_H__ 30 #define _Core_JoyStick_H__ 73 void setConfigValues();
79 virtual void calibrationStarted()
override;
80 virtual void calibrationStopped()
override;
81 void evaluateCalibration();
83 void clearBuffersImpl();
84 void calibrationFileCallback();
85 void fireAxis(
int axis,
int value);
90 super::buttonPressed(static_cast<JoyStickButtonCode::ByEnum>(button));
97 super::buttonReleased(static_cast<JoyStickButtonCode::ByEnum>(button));
112 int sliderStates_[4][2];
116 float positiveCoeffs_[24];
117 float negativeCoeffs_[24];
130 static const unsigned int sliderAxes_s = 8;
Wraps around an OIS::JoyStick and forwards the input events to a list of input states.
Definition: JoyStick.h:60
To recieve buffered joystick input, derive a class from this, and implement the methods here...
Definition: OISJoyStick.h:131
static std::string getClassNameImpl()
Returns the class name as string.
Definition: JoyStick.h:108
static const OIS::Type OISDeviceValue
Definition: JoyStick.h:49
Template parameter collection for the base class
Definition: JoyStick.h:43
::std::string string
Definition: gtest-port.h:756
OIS::JoyStick OISDeviceClass
Definition: JoyStick.h:46
JoyStickButtonCode::ByEnum ButtonTypeParam
Definition: JoyStick.h:48
virtual bool vector3Moved(const OIS::JoyStickEvent &arg, int id) override
OIS event handler (don't remove that because of OIS version issues!)
Definition: JoyStick.h:105
InputDeviceTemplated< JoyStickTraits > super
Super class alias.
Definition: JoyStick.h:67
std::string calibrationFilename_
Joy stick calibration ini filename.
Definition: JoyStick.h:124
JoyStick DeviceClass
Definition: JoyStick.h:45
const std::string & getDeviceName() const
Returns the name generated from the number of knobs and the device name.
Definition: JoyStick.h:76
std::vector< int > configMaxValues_
Config file stored maximum axis values.
Definition: JoyStick.h:121
std::vector< int > configZeroValues_
Config file stored axis values when the knob is in the middle.
Definition: JoyStick.h:119
Specialised for joystick events.
Definition: OISJoyStick.h:115
This is the base class of all objects which may contain config values.
Definition: Configurable.h:47
static std::vector< std::string > deviceNames_s
Contains a list of all names to avoid duplicates.
Definition: JoyStick.h:127
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _CoreExport
Definition: CorePrereqs.h:61
Declaration of Configurable, the base class of all objects which may contain config values...
Joystick base class.
Definition: OISJoyStick.h:159
virtual bool buttonReleased(const OIS::JoyStickEvent &arg, int button) override
OIS event handler.
Definition: JoyStick.h:95
Type
Each Input class has a General Type variable, a form of RTTI.
Definition: OISPrereqs.h:138
JoyStickButtonCode::ByEnum ButtonType
Definition: JoyStick.h:47
Definition: OISPrereqs.h:143
std::string deviceName_
Name generated by the number of knobs and the device name.
Definition: JoyStick.h:110
std::vector< int > configMinValues_
Config file stored minimum axis values.
Definition: JoyStick.h:120
virtual bool buttonPressed(const OIS::JoyStickEvent &arg, int button) override
OIS event handler.
Definition: JoyStick.h:88