32 #if (defined DC_BACKENDS_GAINPUTX11 || defined DC_BACKENDS_GAINPUTWIN32)
34 #ifndef DC_GAINPUT_MULTI_INCLUDED
35 #define DC_GAINPUT_MULTI_INCLUDED
37 #include <gainput/gainput.h>
38 #include <Dynacoe/Backends/InputManager/InputDevice.h>
39 #include <Dynacoe/Backends/InputManager/InputManager.h>
70 class GainputManager :
public InputManager {
75 bool IsSupported(InputType);
77 InputDevice * QueryDevice(
int ID);
78 InputDevice * QueryDevice(DefaultDeviceSlots);
79 int QueryAuxiliaryDevices(
int * IDs);
83 std::string Version();
86 void SetFocus(Display*);
93 gainput::InputManager devMan;
98 struct GainputDevice {
99 GainputDevice(gainput::DeviceId _id, InputDevice * _dev,
100 gainput::InputMap * _buttonMap, gainput::InputMap * _axesMap):
103 buttonMap(_buttonMap),
109 gainput::DeviceId id;
111 gainput::InputMap * buttonMap;
112 gainput::InputMap * axesMap;
118 std::vector<GainputDevice*> devices;
123 void updateInternalStates();
124 void updateDevice(InputDevice);
126 float mouseX, mouseY;
127 float touchX, touchY;
129 int mouseAxesWheelDown = 100;
131 Display * displayHandle;