diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2004-04-14 23:50:44 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2004-04-14 23:50:44 +0000 |
commit | 51985f6defbc62998f4b18ecb3d2b2db8b7d5165 (patch) | |
tree | fc7304fbd51fd3c55340eaee5df71fbe7defc1d0 /linuxhid.h | |
parent | 30d143b2f2380af5b85d5e2d43414dea63ab5fd7 (diff) |
make objects be dummies on non-Linux
svn path=/trunk/externals/hcs/; revision=1604
Diffstat (limited to 'linuxhid.h')
-rw-r--r-- | linuxhid.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -6,7 +6,9 @@ #include "m_imp.h" #endif +#ifdef __gnu_linux__ #include <linux/input.h> +#endif #include <sys/stat.h> @@ -18,8 +20,8 @@ #include <unistd.h> -//#define DEBUG(x) -#define DEBUG(x) x +#define DEBUG(x) +//#define DEBUG(x) x /*------------------------------------------------------------------------------ * from evtest.c from the ff-utils package @@ -32,7 +34,7 @@ #define LONG(x) ((x)/BITS_PER_LONG) #define test_bit(bit, array) ((array[LONG(bit)] >> OFF(bit)) & 1) - +#ifdef __gnu_linux__ char *events[EV_MAX + 1] = { "Reset", "Key", "Relative", "Absolute", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "LED", "Sound", NULL, "Repeat", "ForceFeedback", NULL, "ForceFeedbackStatus"}; char *keys[KEY_MAX + 1] = { "Reserved", "Esc", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "Minus", "Equal", "Backspace", @@ -80,5 +82,7 @@ char *sounds[SND_MAX + 1] = { "Bell", "Click" }; char **names[EV_MAX + 1] = { events, keys, relatives, absolutes, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, leds, sounds, NULL, repeats, NULL, NULL, NULL }; +#endif + /*------------------------------------------------------------------------------ */ |