aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx
diff options
context:
space:
mode:
authorMartin Kiewitz2009-12-04 17:58:26 +0000
committerMartin Kiewitz2009-12-04 17:58:26 +0000
commitd982d1050585449a3c966161d2bde5ef46069895 (patch)
treec6c7c8131520570730109d42ff15e83691b27978 /engines/sci/gfx
parentaa147a2f5af167048b3d57da558bc39a91c3a936 (diff)
downloadscummvm-rg350-d982d1050585449a3c966161d2bde5ef46069895.tar.gz
scummvm-rg350-d982d1050585449a3c966161d2bde5ef46069895.tar.bz2
scummvm-rg350-d982d1050585449a3c966161d2bde5ef46069895.zip
SCI: Make event constants more verbose
svn-id: r46255
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r--engines/sci/gfx/menubar.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/sci/gfx/menubar.cpp b/engines/sci/gfx/menubar.cpp
index 4474b9eefa..8dcefdcd34 100644
--- a/engines/sci/gfx/menubar.cpp
+++ b/engines/sci/gfx/menubar.cpp
@@ -203,10 +203,10 @@ void Menubar::addMenu(GfxState *state, const Common::String &title, const Common
if (right[0] == '#') {
right[0] = SCI_SPECIAL_CHAR_FUNCTION; // Function key
- key = SCI_K_F1 + ((right[1] - '1') << 8);
+ key = SCI_KEY_F1 + ((right[1] - '1') << 8);
if (right[1] == '0')
- key = SCI_K_F10; // F10
+ key = SCI_KEY_F10; // F10
if (right[2] == '=') {
tag = atoi(right + 3);
@@ -215,7 +215,7 @@ void Menubar::addMenu(GfxState *state, const Common::String &title, const Common
} else if (right[0] == '@') { // Alt key
right[0] = SCI_SPECIAL_CHAR_ALT; // ALT
key = right[1];
- modifiers = SCI_EVM_ALT;
+ modifiers = SCI_KEYMOD_ALT;
if ((key >= 'a') && (key <= 'z'))
right[1] = key - 'a' + 'A';
@@ -228,7 +228,7 @@ void Menubar::addMenu(GfxState *state, const Common::String &title, const Common
if (right[0] == '^') {
right[0] = SCI_SPECIAL_CHAR_CTRL; // Control key - there must be a replacement...
key = right[1];
- modifiers = SCI_EVM_CTRL;
+ modifiers = SCI_KEYMOD_CTRL;
if ((key >= 'a') && (key <= 'z'))
right[1] = key - 'a' + 'A';
@@ -278,10 +278,10 @@ void Menubar::addMenu(GfxState *state, const Common::String &title, const Common
}
bool MenuItem::matchKey(int message, int modifiers) {
- if ((_key == message) && ((modifiers & (SCI_EVM_CTRL | SCI_EVM_ALT)) == _modifiers))
+ if ((_key == message) && ((modifiers & (SCI_KEYMOD_CTRL | SCI_KEYMOD_ALT)) == _modifiers))
return true;
- if (message == '\t' && _key == 'i' && ((modifiers & (SCI_EVM_CTRL | SCI_EVM_ALT)) == 0) && _modifiers == SCI_EVM_CTRL)
+ if (message == '\t' && _key == 'i' && ((modifiers & (SCI_KEYMOD_CTRL | SCI_KEYMOD_ALT)) == 0) && _modifiers == SCI_KEYMOD_CTRL)
return true; // Match TAB to ^I
return 0;