mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
renaming to multi-function key. Also, reverting to softkey A for default keymap (compatibility on first run)
svn-id: r27112
This commit is contained in:
parent
b6bc1ef9a6
commit
fb8a569fdf
@ -49,7 +49,7 @@ const String pocketActionNames[] = {
|
|||||||
"Free look",
|
"Free look",
|
||||||
"Zoom up",
|
"Zoom up",
|
||||||
"Zoom down",
|
"Zoom down",
|
||||||
"FT Cheat",
|
"Multi Function",
|
||||||
"Bind Keys",
|
"Bind Keys",
|
||||||
"Cursor Up",
|
"Cursor Up",
|
||||||
"Cursor Down",
|
"Cursor Down",
|
||||||
@ -99,7 +99,7 @@ GUI::Actions()
|
|||||||
_action_enabled[POCKET_ACTION_DOWN] = true;
|
_action_enabled[POCKET_ACTION_DOWN] = true;
|
||||||
_action_enabled[POCKET_ACTION_LEFT] = true;
|
_action_enabled[POCKET_ACTION_LEFT] = true;
|
||||||
_action_enabled[POCKET_ACTION_RIGHT] = true;
|
_action_enabled[POCKET_ACTION_RIGHT] = true;
|
||||||
_action_mapping[POCKET_ACTION_LEFTCLICK] = SDLK_RETURN;
|
_action_mapping[POCKET_ACTION_LEFTCLICK] = SDLK_F1;
|
||||||
_action_mapping[POCKET_ACTION_UP] = SDLK_UP;
|
_action_mapping[POCKET_ACTION_UP] = SDLK_UP;
|
||||||
_action_mapping[POCKET_ACTION_DOWN] = SDLK_DOWN;
|
_action_mapping[POCKET_ACTION_DOWN] = SDLK_DOWN;
|
||||||
_action_mapping[POCKET_ACTION_LEFT] = SDLK_LEFT;
|
_action_mapping[POCKET_ACTION_LEFT] = SDLK_LEFT;
|
||||||
@ -189,8 +189,11 @@ void CEActionsPocket::initInstanceGame() {
|
|||||||
_action_enabled[POCKET_ACTION_ZOOM_DOWN] = true;
|
_action_enabled[POCKET_ACTION_ZOOM_DOWN] = true;
|
||||||
}
|
}
|
||||||
// FT Cheat
|
// FT Cheat
|
||||||
_action_enabled[POCKET_ACTION_FT_CHEAT] = true;
|
_action_enabled[POCKET_ACTION_MULTI] = true;
|
||||||
_key_action[POCKET_ACTION_FT_CHEAT].setAscii(86); // shift-V
|
if (is_agi)
|
||||||
|
_key_action[POCKET_ACTION_MULTI].setAscii(SDLK_PAUSE);
|
||||||
|
else
|
||||||
|
_key_action[POCKET_ACTION_MULTI].setAscii(86); // shift-V
|
||||||
// Key bind method
|
// Key bind method
|
||||||
_action_enabled[POCKET_ACTION_BINDKEYS] = true;
|
_action_enabled[POCKET_ACTION_BINDKEYS] = true;
|
||||||
}
|
}
|
||||||
@ -213,7 +216,7 @@ bool CEActionsPocket::perform(GUI::ActionType action, bool pushed) {
|
|||||||
case POCKET_ACTION_PAUSE:
|
case POCKET_ACTION_PAUSE:
|
||||||
case POCKET_ACTION_SAVE:
|
case POCKET_ACTION_SAVE:
|
||||||
case POCKET_ACTION_SKIP:
|
case POCKET_ACTION_SKIP:
|
||||||
case POCKET_ACTION_FT_CHEAT:
|
case POCKET_ACTION_MULTI:
|
||||||
EventsBuffer::simulateKey(&_key_action[action], false);
|
EventsBuffer::simulateKey(&_key_action[action], false);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
@ -225,7 +228,7 @@ bool CEActionsPocket::perform(GUI::ActionType action, bool pushed) {
|
|||||||
case POCKET_ACTION_PAUSE:
|
case POCKET_ACTION_PAUSE:
|
||||||
case POCKET_ACTION_SAVE:
|
case POCKET_ACTION_SAVE:
|
||||||
case POCKET_ACTION_SKIP:
|
case POCKET_ACTION_SKIP:
|
||||||
case POCKET_ACTION_FT_CHEAT:
|
case POCKET_ACTION_MULTI:
|
||||||
EventsBuffer::simulateKey(&_key_action[action], true);
|
EventsBuffer::simulateKey(&_key_action[action], true);
|
||||||
return true;
|
return true;
|
||||||
case POCKET_ACTION_KEYBOARD:
|
case POCKET_ACTION_KEYBOARD:
|
||||||
|
@ -48,7 +48,7 @@ enum pocketActionType {
|
|||||||
POCKET_ACTION_FREELOOK,
|
POCKET_ACTION_FREELOOK,
|
||||||
POCKET_ACTION_ZOOM_UP,
|
POCKET_ACTION_ZOOM_UP,
|
||||||
POCKET_ACTION_ZOOM_DOWN,
|
POCKET_ACTION_ZOOM_DOWN,
|
||||||
POCKET_ACTION_FT_CHEAT,
|
POCKET_ACTION_MULTI,
|
||||||
POCKET_ACTION_BINDKEYS,
|
POCKET_ACTION_BINDKEYS,
|
||||||
POCKET_ACTION_UP,
|
POCKET_ACTION_UP,
|
||||||
POCKET_ACTION_DOWN,
|
POCKET_ACTION_DOWN,
|
||||||
|
Loading…
Reference in New Issue
Block a user