aboutsummaryrefslogtreecommitdiff
path: root/backends/epoc/SymbianActions.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-12-03 14:34:45 +0000
committerEugene Sandulenko2005-12-03 14:34:45 +0000
commit71e21f0fdf996348afe256b51305c5cd5fba8e8a (patch)
tree690ae0770cc59a53d24e5ae1b5c35a1219018c6e /backends/epoc/SymbianActions.cpp
parent3a9bd3c18cacbd9b1d49107c6db609c7982940d6 (diff)
downloadscummvm-rg350-71e21f0fdf996348afe256b51305c5cd5fba8e8a.tar.gz
scummvm-rg350-71e21f0fdf996348afe256b51305c5cd5fba8e8a.tar.bz2
scummvm-rg350-71e21f0fdf996348afe256b51305c5cd5fba8e8a.zip
Fix code formatting to be compliant with our rules.
It may happen that I broke something since I have no means to compile it. Also I changed EScummVM -> ScummVM is several places. svn-id: r19734
Diffstat (limited to 'backends/epoc/SymbianActions.cpp')
-rw-r--r--backends/epoc/SymbianActions.cpp29
1 files changed, 12 insertions, 17 deletions
diff --git a/backends/epoc/SymbianActions.cpp b/backends/epoc/SymbianActions.cpp
index 35a2c95c0d..ee1a6984ee 100644
--- a/backends/epoc/SymbianActions.cpp
+++ b/backends/epoc/SymbianActions.cpp
@@ -19,8 +19,8 @@
*
*/
-#include "stdafx.h"
-#include "SymbianActions.h"
+#include "common/stdafx.h"
+#include "backends/epoc/SymbianActions.h"
#include "gui/message.h"
#include "scumm/scumm.h"
@@ -83,11 +83,10 @@ int SymbianActions::version() {
}
SymbianActions::SymbianActions(GameDetector &detector) :
- Actions(detector)
-{
+ Actions(detector) {
int i;
- for (i=0; i<ACTION_LAST; i++) {
+ for (i = 0; i < ACTION_LAST; i++) {
_action_mapping[i] = ACTIONS_DEFAULT[i];
_action_enabled[i] = false;
}
@@ -136,17 +135,13 @@ void SymbianActions::initInstanceGame() {
// Save
if (is_simon || is_gob)
_action_enabled[ACTION_SAVE] = false;
- else
- if (is_queen) {
+ else if (is_queen) {
_action_enabled[ACTION_SAVE] = true;
_key_action[ACTION_SAVE].setAscii(SDLK_F1); // F1 key for FOTAQ or F5??!?
- }
- else
- if (is_sky) {
+ } else if (is_sky) {
_action_enabled[ACTION_SAVE] = true;
_key_action[ACTION_SAVE].setAscii(63);
- }
- else {
+ } else {
_action_enabled[ACTION_SAVE] = true;
_key_action[ACTION_SAVE].setAscii(SDLK_F5); // F5 key
}
@@ -161,13 +156,13 @@ void SymbianActions::initInstanceGame() {
// FT Cheat
_action_enabled[ACTION_FT_CHEAT] = true;
_key_action[ACTION_FT_CHEAT].setAscii(86); // shift-V
+
// Skip text
- _action_enabled[ACTION_SKIP_TEXT]=true;
+ _action_enabled[ACTION_SKIP_TEXT] = true;
if (is_queen) {
- _key_action[ACTION_SKIP_TEXT].setAscii(SDLK_SPACE);
- }
- else {
- _key_action[ACTION_SKIP_TEXT].setAscii(SDLK_PERIOD);
+ _key_action[ACTION_SKIP_TEXT].setAscii(SDLK_SPACE);
+ } else {
+ _key_action[ACTION_SKIP_TEXT].setAscii(SDLK_PERIOD);
}
// Pause