(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.
This commit is contained in:
@@ -320,6 +320,10 @@ LRESULT CALLBACK MainWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar
|
|||||||
NHEVENT_KBD(KEYTABLE(KEY_PLUS));
|
NHEVENT_KBD(KEYTABLE(KEY_PLUS));
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
case VK_CLEAR: /* This is the '5' key */
|
||||||
|
NHEVENT_KBD(KEYTABLE(KEY_GOINTERESTING));
|
||||||
|
return 0;
|
||||||
|
|
||||||
case VK_F4:
|
case VK_F4:
|
||||||
if( IS_MAP_FIT_TO_SCREEN(iflags.wc_map_mode) ) {
|
if( IS_MAP_FIT_TO_SCREEN(iflags.wc_map_mode) ) {
|
||||||
mswin_select_map_mode(
|
mswin_select_map_mode(
|
||||||
|
|||||||
Reference in New Issue
Block a user