pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/netmaze/patches Use keypad for control (as well ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/105411493760
branches: trunk
changeset: 464995:105411493760
user: jdc <jdc%pkgsrc.org@localhost>
date: Fri Dec 19 07:08:25 2003 +0000
description:
Use keypad for control (as well as cursor keys).
diffstat:
games/netmaze/patches/patch-ao | 46 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 46 insertions(+), 0 deletions(-)
diffs (50 lines):
diff -r fdb865dae777 -r 105411493760 games/netmaze/patches/patch-ao
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/netmaze/patches/patch-ao Fri Dec 19 07:08:25 2003 +0000
@@ -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:
Home |
Main Index |
Thread Index |
Old Index