summaryrefslogtreecommitdiff
path: root/emulators/fceu/patches
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2004-07-26 18:00:17 +0000
committerdillo <dillo@pkgsrc.org>2004-07-26 18:00:17 +0000
commit82b35577fabbea3d5242dfb1a4b2a32031bda121 (patch)
treee5f0d5f5f0ba5629f40cc4c00dec82925ae0012d /emulators/fceu/patches
parent6377797596cdba8276ae29488bd21d448d1f90be (diff)
downloadpkgsrc-82b35577fabbea3d5242dfb1a4b2a32031bda121.tar.gz
Enable joystick input by default. PKGREVISION++
If you ran fceu before, you have to delete ~/.fceultra/fceu98.cfg for the changes to take effect.
Diffstat (limited to 'emulators/fceu/patches')
-rw-r--r--emulators/fceu/patches/patch-aa21
1 files changed, 19 insertions, 2 deletions
diff --git a/emulators/fceu/patches/patch-aa b/emulators/fceu/patches/patch-aa
index 12a6bbe1501..15684a58a76 100644
--- a/emulators/fceu/patches/patch-aa
+++ b/emulators/fceu/patches/patch-aa
@@ -1,17 +1,34 @@
-$NetBSD: patch-aa,v 1.1.1.1 2004/07/19 18:37:15 wiz Exp $
+$NetBSD: patch-aa,v 1.2 2004/07/26 18:00:17 dillo Exp $
Make default keys match documentation.
+Also, add settings for joystick.
--- src/drivers/pc/input.c.orig 2004-05-17 01:48:26.000000000 +0200
+++ src/drivers/pc/input.c
-@@ -286,8 +286,8 @@ static void KeyboardCommands(void)
+@@ -278,6 +278,10 @@ static void KeyboardCommands(void)
+
+ #define MK(x) {{BUTTC_KEYBOARD},{0},{MKK(x)},1}
+ #define MK2(x1,x2) {{BUTTC_KEYBOARD},{0},{MKK(x1),MKK(x2)},2}
++#define MKJA(x, a, d) {{BUTTC_KEYBOARD, BUTTC_JOYSTICK}, \
++ {0, 0},{MKK(x),0x8000|((d)<<14)|(a)},2}
++#define MKJB(x, a) {{BUTTC_KEYBOARD, BUTTC_JOYSTICK}, \
++ {0, 0},{MKK(x),(a)},2}
+
+ #define MKZ() {{0},{0},{0},0}
+
+@@ -286,8 +290,13 @@ static void KeyboardCommands(void)
ButtConfig GamePadConfig[4][10]={
/* Gamepad 1 */
{
- MK(KP3), MK(KP2), MK(TAB), MK(ENTER), MK(W),MK(Z),
- MK(A), MK(S), MKZ(), MKZ()
++ MKJB(LEFTALT, 0), MKJB(LEFTCONTROL, 1), MKJB(TAB, 5), MKJB(ENTER, 7),
++ MKJA(CURSORUP, 1, 1), MKJA(CURSORDOWN, 1, 0),
++ MKJA(CURSORLEFT, 0, 1), MKJA(CURSORRIGHT, 0, 0), MKZ(), MKZ()
++#if 0
+ MK(LEFTALT), MK(LEFTCONTROL), MK(TAB), MK(ENTER), MK(CURSORUP),
+ MK(CURSORDOWN), MK(CURSORLEFT), MK(CURSORRIGHT), MKZ(), MKZ()
++#endif
},
/* Gamepad 2 */