From e52b25f17032f2f20f8ad8df4fa924a7b1e4b7fd Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Mon, 25 Nov 2013 16:58:55 -0800 Subject: [PATCH] get joystick working again after a decade --- src/joystick.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/joystick.c b/src/joystick.c index 2fa51f59..7ad5634b 100644 --- a/src/joystick.c +++ b/src/joystick.c @@ -57,7 +57,10 @@ int c_open_joystick() { /* try again with another name */ if ((js_fd = open("/dev/joystick", O_RDONLY)) < 0) { - return 1; /* problem */ + if ((js_fd = open("/dev/input/js0", O_RDONLY)) < 0) + { + return 1; /* problem */ + } } }