aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linuxevent.c4
-rw-r--r--linuxjoystick.c4
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;