aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2012-09-04 19:43:15 +0200
committerJohannes Schickel2012-09-04 19:43:15 +0200
commite8f2742cc789b54d22ed5d47e45938474ea608e9 (patch)
treea632e2827e12043a8ec0034ced82191d0c8e9ab4
parent9989a4f3daba891326810d7ae620cd75d97521f1 (diff)
downloadscummvm-rg350-e8f2742cc789b54d22ed5d47e45938474ea608e9.tar.gz
scummvm-rg350-e8f2742cc789b54d22ed5d47e45938474ea608e9.tar.bz2
scummvm-rg350-e8f2742cc789b54d22ed5d47e45938474ea608e9.zip
WINTERMUTE: Replace VKeyCodes constant names.
This is a purely cosmetical change, which should help compilation on systems, which use VK_* for internal constants. This should help compilation for WinCE.
-rw-r--r--engines/wintermute/base/base_keyboard_state.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/wintermute/base/base_keyboard_state.cpp b/engines/wintermute/base/base_keyboard_state.cpp
index c8dc02c49a..c8a6ccd391 100644
--- a/engines/wintermute/base/base_keyboard_state.cpp
+++ b/engines/wintermute/base/base_keyboard_state.cpp
@@ -272,30 +272,30 @@ uint32 BaseKeyboardState::keyCodeToVKey(Common::Event *event) {
}
enum VKeyCodes {
- VK_SPACE = 32,
- VK_LEFT = 37,
- VK_UP = 38,
- VK_RIGHT = 39,
- VK_DOWN = 40
+ kVkSpace = 32,
+ kVkLeft = 37,
+ kVkUp = 38,
+ kVkRight = 39,
+ kVkDown = 40
}
//////////////////////////////////////////////////////////////////////////
Common::KeyCode BaseKeyboardState::vKeyToKeyCode(uint32 vkey) {
// todo
switch (vkey) {
- case VK_SPACE:
+ case kVkSpace:
return Common::KEYCODE_SPACE;
break;
- case VK_LEFT:
+ case kVkLeft:
return Common::KEYCODE_LEFT;
break;
- case VK_RIGHT:
+ case kVkRight:
return Common::KEYCODE_RIGHT;
break;
- case VK_UP:
+ case kVkUp:
return Common::KEYCODE_UP;
break;
- case VK_DOWN:
+ case kVkDown:
return Common::KEYCODE_DOWN;
break;
default: