diff options
author | jdc <jdc@pkgsrc.org> | 2003-12-19 07:08:25 +0000 |
---|---|---|
committer | jdc <jdc@pkgsrc.org> | 2003-12-19 07:08:25 +0000 |
commit | 4a18b435b6c7875d602a0cac3d82b1cef808aed5 (patch) | |
tree | dc023d90a09482b29f28bcf2fdeb2d607db5a050 /games | |
parent | 3c421cb87441728bab62aee12d80d12180d7621d (diff) | |
download | pkgsrc-4a18b435b6c7875d602a0cac3d82b1cef808aed5.tar.gz |
Use keypad for control (as well as cursor keys).
Diffstat (limited to 'games')
-rw-r--r-- | games/netmaze/patches/patch-ao | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/games/netmaze/patches/patch-ao b/games/netmaze/patches/patch-ao new file mode 100644 index 00000000000..919c3821da9 --- /dev/null +++ b/games/netmaze/patches/patch-ao @@ -0,0 +1,46 @@ +$NetBSD: patch-ao,v 1.1 2003/12/19 07:08:25 jdc Exp $ + +--- x11cntrl.c.dist 1994-03-19 13:40:17.000000000 +0000 ++++ x11cntrl.c 2003-12-18 12:16:14.000000000 +0000 +@@ -99,17 +99,21 @@ + switch(key) + { + case XK_Up: ++ case XK_KP_Up: + sm->ownstick |= JOY_UP; + sm->ownstick &= ~JOY_HIDE; + break; + case XK_Down: ++ case XK_KP_Down: + sm->ownstick &= ~JOY_HIDE; + sm->ownstick |= JOY_DOWN; + break; + case XK_Right: ++ case XK_KP_Right: + sm->ownstick |= JOY_RIGHT; + break; + case XK_Left: ++ case XK_KP_Left: + sm->ownstick |= JOY_LEFT; + break; + case XK_Shift_L: +@@ -179,15 +183,19 @@ + switch(key) + { + case XK_Up: ++ case XK_KP_Up: + sm->ownstick &= ~JOY_UP; + break; + case XK_Down: ++ case XK_KP_Down: + sm->ownstick &= ~JOY_DOWN; + break; + case XK_Right: ++ case XK_KP_Right: + sm->ownstick &= ~JOY_RIGHT; + break; + case XK_Left: ++ case XK_KP_Left: + sm->ownstick &= ~JOY_LEFT; + break; + case XK_Shift_L: |