diff options
author | B. Watson <urchlay@slackware.uk> | 2023-01-08 00:11:33 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-14 08:50:22 +0700 |
commit | b9a6d30880cf8e84067c09a8d3b88c6408f010af (patch) | |
tree | 91842a7d4bfc36e7f0eac1c31668bbbfa315df1f /games/koules/patches | |
parent | 1195b776439a153f933a360fc49543c2edde8e18 (diff) |
games/koules: Make joysticks work again.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/koules/patches')
-rw-r--r-- | games/koules/patches/joystickdevs.diff | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/games/koules/patches/joystickdevs.diff b/games/koules/patches/joystickdevs.diff new file mode 100644 index 0000000000000..be9d7b6934eac --- /dev/null +++ b/games/koules/patches/joystickdevs.diff @@ -0,0 +1,21 @@ +diff -Naur koules1.4/xlib/init.c koules1.4.patched/xlib/init.c +--- koules1.4/xlib/init.c 1998-03-05 12:03:01.000000000 -0500 ++++ koules1.4.patched/xlib/init.c 2023-01-07 23:23:21.963726308 -0500 +@@ -334,7 +334,7 @@ + printf ("Autoprobing hardware\n"); + printf ("Initializing joystick driver\n"); + #ifdef JOYSTICK +- joystickdevice[0] = open ("/dev/js0", O_RDONLY); ++ joystickdevice[0] = open ("/dev/input/js0", O_RDONLY); + if (joystickdevice[0] < 0) + { + perror ("Joystick driver"); +@@ -343,7 +343,7 @@ + } + else + printf ("Joystick 1 initialized\n"); +- joystickdevice[1] = open ("/dev/js1", O_RDONLY); ++ joystickdevice[1] = open ("/dev/input/js1", O_RDONLY); + if (joystickdevice[1] < 0) + { + perror ("Joystick driver"); |