00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _LINUX_INPUTSYSTEM_PREREQS_H
00024 #define _LINUX_INPUTSYSTEM_PREREQS_H
00025
00026
00027 #ifdef HAVE_CONFIG_H
00028 # include "config.h"
00029 #endif
00030
00031 #include "OISPrereqs.h"
00032
00034 #define JOY_BUFFERSIZE 10
00035
00036 namespace OIS
00037 {
00038 class LinuxInputManager;
00039 class LinuxKeyboard;
00040 class LinuxJoyStick;
00041 class LinuxMouse;
00042
00043 class LinuxForceFeedback;
00044
00045 struct Range
00046 {
00047 Range() {};
00048 Range(int _min, int _max) : min(_min), max(_max) {};
00049 int min, max;
00050 };
00051
00052 struct JoyStickInfo
00053 {
00054 JoyStickInfo(): devId(-1),joyFileD(-1),version(0),axes(0),buttons(0),hats(0) {}
00056 int devId;
00058 int joyFileD;
00060 int version;
00062 std::string vendor;
00064 unsigned char axes;
00066 unsigned char buttons;
00068 unsigned char hats;
00070 std::map<int, int> button_map;
00072 std::map<int, int> axis_map;
00074 std::map<int, Range> axis_range;
00075 };
00076
00077 typedef std::vector< JoyStickInfo > JoyStickInfoList;
00078 }
00079
00080 #endif //_LINUX_INPUTSYSTEM_PREREQS_H