OSDN Git Service

inkey_special()でテンキーの KP_1 等を認識できるようにする為、
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 16 Oct 2003 16:22:38 +0000 (16:22 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 16 Oct 2003 16:22:38 +0000 (16:22 +0000)
main-mac.cで使われていたテンキー専用の内部コード("^^1"等)を使わないように仕様変更。

lib/pref/pref-mac.prf
src/main-mac.c

index b54ef0b..80ac126 100644 (file)
@@ -71,6 +71,41 @@ T:Up:62
 
 
 #
+# Keypad -- Direction
+#
+
+A:0
+P:^_18\r
+
+A:1
+P:^_19\r
+
+A:2
+P:^_20\r
+
+A:3
+P:^_21\r
+
+A:4
+P:^_22\r
+
+A:5
+P:^_23\r
+
+A:6
+P:^_24\r
+
+A:7
+P:^_25\r
+
+A:8
+P:^_27\r
+
+A:9
+P:^_28\r
+
+
+#
 # Shift-Keypad -- Directed running
 #
 
index 5008470..1a5c3d9 100644 (file)
@@ -5136,19 +5136,6 @@ static bool CheckEvents(bool wait)
                                Term_keypress(ch);
                        }
 
-                       /* Hack -- normal "keypad keys" -> special keypress */
-                       else if (!mc && !ms && !mo && !mx && (ck < 96))
-                       {
-                               /* Hack -- "enter" is confused */
-                               if (ck == 76) ch = '\n';
-
-                               /* Send control-caret as a trigger */
-                               Term_keypress(30);
-
-                               /* Send the "ascii" keypress */
-                               Term_keypress(ch);
-                       }
-
                        /* Bizarre key -> encoded keypress */
                        else if (ck <= 127)
                        {