diff options
author | Florian Jung <flo@windfisch.org> | 2014-09-07 01:53:10 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2014-09-07 01:53:10 +0200 |
commit | f498d6e01a79ef9509d4b3e39e9ef354d0f7428a (patch) | |
tree | ff0cf6556471f187c11a4f0a96312540eb9fedd4 /joystick.h | |
parent | 8bb8a119cf0bfea388e499f2d1bbcdbdd18d9db0 (diff) |
use JOYSTICK_{UINPUT,PATCHEDINPUTPLUGIN} #defines instead of FREEBSD/LINUX
Diffstat (limited to 'joystick.h')
-rw-r--r-- | joystick.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |