Etterna 0.74.4
Loading...
Searching...
No Matches
LinuxInputManager.h
1#ifndef LINUX_INPUT_MANAGER
2#define LINUX_INPUT_MANAGER 1
3
4#include <vector>
5using namespace std;
6
7#include "Etterna/Globals/global.h"
10
11// Enumerates the input devices on the system and dispatches them to
12// IH_Linux_Event and IH_Linux_Joystick as appropriate.
13
15{
16 public:
18 void InitDriver(InputHandler_Linux_Joystick* drv);
19 void InitDriver(InputHandler_Linux_Event* drv);
21
22 private:
23 bool m_bEventEnabled;
24 InputHandler_Linux_Event* m_EventDriver;
25 std::vector<std::string> m_vsPendingEventDevices;
26
27 bool m_bJoystickEnabled;
28 InputHandler_Linux_Joystick* m_JoystickDriver;
29 std::vector<std::string> m_vsPendingJoystickDevices;
30};
31
33 LINUXINPUT; // global and accessible from anywhere in our program
34
35#endif // LINUX_INPUT_MANAGER
Definition InputHandler_Linux_Event.h:10
Definition InputHandler_Linux_Joystick.h:8
Definition LinuxInputManager.h:15