summaryrefslogtreecommitdiff
path: root/joystick.h
diff options
context:
space:
mode:
Diffstat (limited to 'joystick.h')
-rw-r--r--joystick.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/joystick.h b/joystick.h
index 50844a7..5b1325d 100644
--- a/joystick.h
+++ b/joystick.h
@@ -24,7 +24,7 @@
#include "os.h"
-#ifdef FREEBSD
+#ifdef JOYSTICK_PATCHEDINPUTPLUGIN
typedef union {
unsigned int Value;
struct {
@@ -51,7 +51,7 @@ typedef union {
};
} BUTTONS;
-#endif // FREEBSD
+#endif // JOYSTICK_PATCHEDINPUTPLUGIN
class Joystick
@@ -68,12 +68,12 @@ class Joystick
void reset();
private:
-#ifdef FREEBSD
+#ifdef JOYSTICK_PATCHEDINPUTPLUGIN
BUTTONS buttons;
void send_data();
int fifo_fd;
#endif
-#ifdef LINUX
+#ifdef JOYSTICK_UINPUT
int fd;
#endif