diff options
author | Guenter Geiger <ggeiger@users.sourceforge.net> | 2004-03-16 09:40:17 +0000 |
---|---|---|
committer | Guenter Geiger <ggeiger@users.sourceforge.net> | 2004-03-16 09:40:17 +0000 |
commit | 30d143b2f2380af5b85d5e2d43414dea63ab5fd7 (patch) | |
tree | 91f27c0c3fba07e209f0e3363fba0b8562fb08fa | |
parent | 4b5c09297f11b2612a9072fc05a244fbc2c0ddc0 (diff) |
Removed EV_RST (disappeared from kernel API)
svn path=/trunk/externals/hcs/; revision=1424
-rw-r--r-- | linuxevent.c | 4 | ||||
-rw-r--r-- | linuxjoystick.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/linuxevent.c b/linuxevent.c index b53a2b0..73261c6 100644 --- a/linuxevent.c +++ b/linuxevent.c @@ -2,7 +2,7 @@ #define LINUXEVENT_DEVICE "/dev/input/event0"
-static char *version = "$Revision: 1.4 $";
+static char *version = "$Revision: 1.5 $";
/*------------------------------------------------------------------------------
* CLASS DEF
@@ -113,8 +113,10 @@ static int linuxevent_open(t_linuxevent *x, t_symbol *s) { post(" Event code %d (%s)", eventCode, names[eventType] ? (names[eventType][eventCode] ? names[eventType][eventCode] : "?") : "?");
switch(eventType) {
+#ifdef EV_RST
case EV_RST:
break;
+#endif
case EV_KEY:
buttons++;
break;
diff --git a/linuxjoystick.c b/linuxjoystick.c index 07c1972..a7be07d 100644 --- a/linuxjoystick.c +++ b/linuxjoystick.c @@ -2,7 +2,7 @@ #define LINUXJOYSTICK_AXES 6
-static char *version = "$Revision: 1.3 $";
+static char *version = "$Revision: 1.4 $";
/*------------------------------------------------------------------------------
* CLASS DEF
@@ -114,8 +114,10 @@ static int linuxjoystick_open(t_linuxjoystick *x, t_symbol *s) { post(" Event code %d (%s)", eventCode, names[eventType] ? (names[eventType][eventCode] ? names[eventType][eventCode] : "?") : "?");
switch(eventType) {
+#ifdef EV_RST
case EV_RST:
break;
+#endif
case EV_KEY:
buttons++;
break;
|