mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-09-27 09:56:08 +00:00
get joystick working again after a decade
This commit is contained in:
parent
e94e9d6b10
commit
e52b25f170
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user