Etterna
0.74.4
Loading...
Searching...
No Matches
src
arch
InputHandler
LinuxInputManager.h
1
#ifndef LINUX_INPUT_MANAGER
2
#define LINUX_INPUT_MANAGER 1
3
4
#include <vector>
5
using namespace
std;
6
7
#include "Etterna/Globals/global.h"
8
class
InputHandler_Linux_Joystick
;
9
class
InputHandler_Linux_Event
;
10
11
// Enumerates the input devices on the system and dispatches them to
12
// IH_Linux_Event and IH_Linux_Joystick as appropriate.
13
14
class
LinuxInputManager
15
{
16
public
:
17
LinuxInputManager
();
18
void
InitDriver(
InputHandler_Linux_Joystick
* drv);
19
void
InitDriver(
InputHandler_Linux_Event
* drv);
20
~LinuxInputManager
();
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
32
extern
LinuxInputManager
*
33
LINUXINPUT;
// global and accessible from anywhere in our program
34
35
#endif
// LINUX_INPUT_MANAGER
InputHandler_Linux_Event
Definition
InputHandler_Linux_Event.h:10
InputHandler_Linux_Joystick
Definition
InputHandler_Linux_Joystick.h:8
LinuxInputManager
Definition
LinuxInputManager.h:15
Generated by
1.9.8