From: nethack.allison Date: Wed, 20 Mar 2002 10:44:13 +0000 (+0000) Subject: (from Yitzhak) X-Git-Tag: MOVE2GIT~2918 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bff7b7e431c7ea82439d2c5b5e9eb68f04ef7378;p=nethack (from Yitzhak) 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. --- diff --git a/win/win32/mhmain.c b/win/win32/mhmain.c index 52ee55f6f..6b4a39b45 100644 --- a/win/win32/mhmain.c +++ b/win/win32/mhmain.c @@ -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(