diff options
author | Kostas Nakos | 2006-06-10 11:07:28 +0000 |
---|---|---|
committer | Kostas Nakos | 2006-06-10 11:07:28 +0000 |
commit | a2651ff7cbc350e84d11694c811beebe1ec64c8d (patch) | |
tree | 686dd9b7e6365dcf6292698d03f046b5b647e8ee /backends | |
parent | b9c8981d62ffafad705c69d26a5c26016291fe68 (diff) | |
download | scummvm-rg350-a2651ff7cbc350e84d11694c811beebe1ec64c8d.tar.gz scummvm-rg350-a2651ff7cbc350e84d11694c811beebe1ec64c8d.tar.bz2 scummvm-rg350-a2651ff7cbc350e84d11694c811beebe1ec64c8d.zip |
added rotate and virtual keyboard actions
svn-id: r23002
Diffstat (limited to 'backends')
-rw-r--r-- | backends/wince/CEActionsSmartphone.cpp | 18 | ||||
-rw-r--r-- | backends/wince/CEActionsSmartphone.h | 2 |
2 files changed, 17 insertions, 3 deletions
diff --git a/backends/wince/CEActionsSmartphone.cpp b/backends/wince/CEActionsSmartphone.cpp index 5817fac744..f5e11f34e6 100644 --- a/backends/wince/CEActionsSmartphone.cpp +++ b/backends/wince/CEActionsSmartphone.cpp @@ -52,12 +52,14 @@ const String smartphoneActionNames[] = { "Zone", "FT Cheat", "Bind Keys" + "Keyboard", + "Rotate" }; #ifdef SIMU_SMARTPHONE -const int ACTIONS_SMARTPHONE_DEFAULT[] = { 0x111, 0x112, 0x114, 0x113, 0x11a, 0x11b, VK_LWIN, VK_ESCAPE, VK_F8, 0, VK_RETURN }; +const int ACTIONS_SMARTPHONE_DEFAULT[] = { 0x111, 0x112, 0x114, 0x113, 0x11a, 0x11b, VK_LWIN, VK_ESCAPE, VK_F8, 0, VK_RETURN, 0, 0 }; #else -const int ACTIONS_SMARTPHONE_DEFAULT[] = { '4', '6', '8', '2', 0x11a, 0x11b, '0', VK_ESCAPE, '9', 0, VK_RETURN }; +const int ACTIONS_SMARTPHONE_DEFAULT[] = { '4', '6', '8', '2', 0x11a, 0x11b, '0', VK_ESCAPE, '9', 0, VK_RETURN, 0, 0 }; #endif void CEActionsSmartphone::init() { @@ -74,7 +76,7 @@ int CEActionsSmartphone::size() { } String CEActionsSmartphone::domain() { - return "smartphone"; + return ConfMan.kApplicationDomain; } int CEActionsSmartphone::version() { @@ -108,6 +110,10 @@ void CEActionsSmartphone::initInstanceMain(OSystem *mainSystem) { _action_enabled[SMARTPHONE_ACTION_LEFTCLICK] = true; // Right Click _action_enabled[SMARTPHONE_ACTION_RIGHTCLICK] = true; + // Show virtual keyboard + _action_enabled[SMARTPHONE_ACTION_KEYBOARD] = true; + // Rotate display + _action_enabled[SMARTPHONE_ACTION_ROTATE] = true; } void CEActionsSmartphone::initInstanceGame() { @@ -218,6 +224,12 @@ bool CEActionsSmartphone::perform(GUI::ActionType action, bool pushed) { keydialogrunning = false; } return true; + case SMARTPHONE_ACTION_KEYBOARD: + _CESystem->swap_smartphone_keyboard(); + return true; + case SMARTPHONE_ACTION_ROTATE: + _CESystem->smartphone_rotate_display(); + return true; } return false; diff --git a/backends/wince/CEActionsSmartphone.h b/backends/wince/CEActionsSmartphone.h index 9549297d84..b100680d9d 100644 --- a/backends/wince/CEActionsSmartphone.h +++ b/backends/wince/CEActionsSmartphone.h @@ -49,6 +49,8 @@ enum smartphoneActionType { SMARTPHONE_ACTION_ZONE, SMARTPHONE_ACTION_FT_CHEAT, SMARTPHONE_ACTION_BINDKEYS, + SMARTPHONE_ACTION_KEYBOARD, + SMARTPHONE_ACTION_ROTATE, SMARTPHONE_ACTION_LAST }; |