Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F126958
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
863 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/util/linux_joystick.h b/util/linux_joystick.h
index 054f6caa..8c528628 100644
--- a/util/linux_joystick.h
+++ b/util/linux_joystick.h
@@ -1,32 +1,36 @@
+#ifdef LINUX
+
#include "joystick.h"
#include <stdint.h>
#include <vector>
#include <linux/input.h>
#include <linux/joystick.h>
#define NAME_LENGTH 1024
class LinuxJoystick: public Joystick {
public:
virtual void poll();
virtual JoystickInput readAll();
virtual bool pressed();
virtual ~LinuxJoystick();
friend class Joystick;
protected:
LinuxJoystick();
/* file descriptor for /dev/input/jsX */
int file;
char name[NAME_LENGTH];
unsigned char axes;
unsigned char buttons;
int version;
uint16_t btnmap[KEY_MAX - BTN_MISC + 1];
uint8_t axmap[ABS_MAX + 1];
char * button;
int * axis;
};
+
+#endif
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Jun 11, 1:47 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
69314
Default Alt Text
(863 B)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline