]> granicus.if.org Git - nethack/commitdiff
(from Yitzhak)
authornethack.allison <nethack.allison>
Wed, 20 Mar 2002 10:44:13 +0000 (10:44 +0000)
committernethack.allison <nethack.allison>
Wed, 20 Mar 2002 10:44:13 +0000 (10:44 +0000)
This band adds handling for the "5" key in the numeric keypad.  This is
called VK_CLEAR in the VK_ constants.  Using this band, and with
NumLock off, doing 5 will send NetHack the letter 'g'.  Doing SHIFT-5 will
send 'G'.  Without this band and with NumLock off, 5 does nothing.  With
NumLock on, 5 sends 5.

win/win32/mhmain.c

index 52ee55f6fdb38d10c7c2d119ae4959cd23549acb..6b4a39b456a2c255adbe74e350f1842a46002a60 100644 (file)
@@ -320,6 +320,10 @@ LRESULT CALLBACK MainWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar
                                NHEVENT_KBD(KEYTABLE(KEY_PLUS));
                        return 0;
 
+                       case VK_CLEAR: /* This is the '5' key */
+                               NHEVENT_KBD(KEYTABLE(KEY_GOINTERESTING));
+                       return 0;
+
                        case VK_F4:
                                if( IS_MAP_FIT_TO_SCREEN(iflags.wc_map_mode) ) {
                                        mswin_select_map_mode(