get joystick working again after a decade

This commit is contained in:
Aaron Culliney 2013-11-25 16:58:55 -08:00
parent e94e9d6b10
commit e52b25f170

View File

@ -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 */
}
}
}