Ticket #8643: mh_inv_fix.patch
File mh_inv_fix.patch, 860 bytes (added by , 18 years ago) |
---|
-
keyboard.cpp
93 93 if (_gfx->keypress()) { 94 94 key = _gfx->getKey(); 95 95 96 if ((getFeatures() & GF_MANHUNTER) && (key == KEY_ENTER) &&97 (_game.inputMode == INPUT_NONE))98 key = 0x20; // Set Enter key to Space in Manhunter when there's no text input99 100 96 debugC(3, kDebugLevelInput, "key %02x pressed", key); 101 97 } 102 98 … … 111 107 if (key == 0 || (key == KEY_ESCAPE && (getFeatures() & GF_ESC_MENU)) ) 112 108 return false; 113 109 110 if ((getFeatures() & GF_MANHUNTER) && (key == KEY_ENTER) && 111 (_game.inputMode == INPUT_NONE)) 112 key = 0x20; // Set Enter key to Space in Manhunter when there's no text input 113 114 114 debugC(3, kDebugLevelInput, "key = %04x", key); 115 115 116 116 for (i = 0; i < MAX_DIRS; i++) {