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

@ -56,10 +56,13 @@ int c_open_joystick() {
/* try again with another name */
if ((js_fd = open("/dev/joystick", O_RDONLY)) < 0)
{
if ((js_fd = open("/dev/input/js0", O_RDONLY)) < 0)
{
return 1; /* problem */
}
}
}
/* set timelimit value */
if (ioctl(js_fd, JS_SET_TIMELIMIT, &js_timelimit) == -1)