Patch #1704914: "Fix for #1671426: MH2 : Doesn't recognize Enter for actions"

svn-id: r26562
This commit is contained in:
Eugene Sandulenko 2007-04-21 21:47:14 +00:00
parent 08f5b5f31d
commit b0ae4bf1a3
3 changed files with 16 additions and 10 deletions

View File

@ -110,7 +110,8 @@ enum AgiGameFeatures {
GF_AGIPAL = (1 << 4),
GF_MACGOLDRUSH = (1 << 5),
GF_FANMADE = (1 << 6),
GF_ESC_MENU = (1 << 7)
GF_ESC_MENU = (1 << 7),
GF_MANHUNTER = (1 << 8)
};
struct AGIGameDescription;

View File

@ -897,7 +897,7 @@ static const AGIGameDescription gameDescriptions[] = {
Common::ADGF_NO_FLAGS
},
GType_V3,
0,
GF_MANHUNTER,
0x3149,
},
@ -913,7 +913,7 @@ static const AGIGameDescription gameDescriptions[] = {
Common::ADGF_NO_FLAGS
},
GType_V3,
0,
GF_MANHUNTER,
0x3149,
},
@ -929,7 +929,7 @@ static const AGIGameDescription gameDescriptions[] = {
Common::ADGF_NO_FLAGS
},
GType_V3,
0,
GF_MANHUNTER,
0x3149,
},
@ -946,7 +946,7 @@ static const AGIGameDescription gameDescriptions[] = {
Common::ADGF_NO_FLAGS
},
GType_V3,
0,
GF_MANHUNTER,
0x3149,
},
@ -962,7 +962,7 @@ static const AGIGameDescription gameDescriptions[] = {
Common::ADGF_NO_FLAGS
},
GType_V3,
0,
GF_MANHUNTER,
0x3149,
},
@ -978,7 +978,7 @@ static const AGIGameDescription gameDescriptions[] = {
Common::ADGF_NO_FLAGS
},
GType_V3,
0,
GF_MANHUNTER,
0x3149,
},
@ -994,7 +994,7 @@ static const AGIGameDescription gameDescriptions[] = {
Common::ADGF_NO_FLAGS
},
GType_V3,
0,
GF_MANHUNTER,
0x3086,
},
@ -1010,7 +1010,7 @@ static const AGIGameDescription gameDescriptions[] = {
Common::ADGF_NO_FLAGS
},
GType_V3,
0,
GF_MANHUNTER,
0x3149,
},
@ -1026,7 +1026,7 @@ static const AGIGameDescription gameDescriptions[] = {
Common::ADGF_NO_FLAGS
},
GType_V3,
0,
GF_MANHUNTER,
0x3149,
},

View File

@ -92,6 +92,11 @@ int AgiEngine::doPollKeyboard() {
/* If a key is ready, rip it */
if (_gfx->keypress()) {
key = _gfx->getKey();
if ((getFeatures() & GF_MANHUNTER) && (key == KEY_ENTER) &&
(_game.inputMode == INPUT_NONE))
key = 0x20; // Set Enter key to Space in Manhunter when there's no text input
debugC(3, kDebugLevelInput, "key %02x pressed", key);
}