summaryrefslogtreecommitdiff
path: root/emulators/xmame/patches/patch-ab
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-08-25 01:20:11 +0000
committerwiz <wiz@pkgsrc.org>2004-08-25 01:20:11 +0000
commitbd3f7e792c8fa29fbaebe638cd479451dfae1f1c (patch)
treeda9d8aa013d24d2c786802aab6bc98ca872fd401 /emulators/xmame/patches/patch-ab
parentc384127bdb4dc9db6f1b069a05077197f5a33133 (diff)
downloadpkgsrc-bd3f7e792c8fa29fbaebe638cd479451dfae1f1c.tar.gz
Fix names for joystick buttons in GUI. Bump PKGREVISION.
Diffstat (limited to 'emulators/xmame/patches/patch-ab')
-rw-r--r--emulators/xmame/patches/patch-ab13
1 files changed, 13 insertions, 0 deletions
diff --git a/emulators/xmame/patches/patch-ab b/emulators/xmame/patches/patch-ab
new file mode 100644
index 00000000000..37857438dc6
--- /dev/null
+++ b/emulators/xmame/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.28 2004/08/25 01:20:11 wiz Exp $
+
+--- src/unix/devices.c.orig 2004-08-13 06:30:14.000000000 +0200
++++ src/unix/devices.c
+@@ -971,7 +971,7 @@ static void init_joycodes(void)
+ }
+ for (button = 0; button < JOY_BUTTONS; button++)
+ {
+- snprintf(tempname, JOY_NAME_LEN, "Joy %d button %d", stick + 1 , axis + 1);
++ snprintf(tempname, JOY_NAME_LEN, "Joy %d button %d", stick + 1 , button + 1);
+ add_joylist_entry(tempname, JOYCODE(stick, CODETYPE_BUTTON, button), CODE_OTHER_DIGITAL);
+ }
+ }