Etterna 0.74.4
Loading...
Searching...
No Matches
InputHandler_Linux_Event.h
1/* InputHandler_Linux_Event - evdev-based input driver */
2
3#ifndef INPUT_HANDLER_LINUX_EVENT_H
4#define INPUT_HANDLER_LINUX_EVENT_H
5
6#include "InputHandler.h"
7#include "RageUtil/Misc/RageThreads.h"
8
10{
11 public:
14 bool TryDevice(std::string devfile);
15 bool DevicesChanged() { return m_bDevicesChanged; }
16 void GetDevicesAndDescriptions(std::vector<InputDeviceInfo>& vDevicesOut);
17
18 private:
19 void StartThread();
20 void StopThread();
21 static int InputThread_Start(void* p);
22 void InputThread();
23
24 RageThread m_InputThread;
25 InputDevice m_NextDevice;
26 bool m_bShutdown, m_bDevicesChanged;
27};
28#define USE_INPUT_HANDLER_LINUX_JOYSTICK
29
30#endif
Definition InputHandler_Linux_Event.h:10
A class designed to handle special input devices.
Definition InputHandler.h:23
Thread, mutex, semaphore, and event classes.
Definition RageThreads.h:155