From bff7b7e431c7ea82439d2c5b5e9eb68f04ef7378 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Wed, 20 Mar 2002 10:44:13 +0000 Subject: [PATCH] (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. --- win/win32/mhmain.c | 4 ++++ 1 file changed, 4 insertions(+) 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( -- 2.40.0