aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/wince/CEgui
diff options
context:
space:
mode:
authorMax Horn2007-06-23 00:05:32 +0000
committerMax Horn2007-06-23 00:05:32 +0000
commitf97cbb8294eb35fbd3af38fbe37ac35a82c64121 (patch)
tree24c3759ff046655ad439dd8fd51b165bc4a1a25b /backends/platform/wince/CEgui
parent05a70fc8e404bd2003e8faa3bc1d4564918eca03 (diff)
downloadscummvm-rg350-f97cbb8294eb35fbd3af38fbe37ac35a82c64121.tar.gz
scummvm-rg350-f97cbb8294eb35fbd3af38fbe37ac35a82c64121.tar.bz2
scummvm-rg350-f97cbb8294eb35fbd3af38fbe37ac35a82c64121.zip
Update GUI::Key constructs
svn-id: r27643
Diffstat (limited to 'backends/platform/wince/CEgui')
-rw-r--r--backends/platform/wince/CEgui/PanelKeyboard.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/backends/platform/wince/CEgui/PanelKeyboard.cpp b/backends/platform/wince/CEgui/PanelKeyboard.cpp
index fdbb3b4e32..79b833f84b 100644
--- a/backends/platform/wince/CEgui/PanelKeyboard.cpp
+++ b/backends/platform/wince/CEgui/PanelKeyboard.cpp
@@ -36,8 +36,7 @@ namespace CEGUI {
PanelKeyboard::PanelKeyboard(WORD reference) : Toolbar() {
setBackground(reference);
_state = false;
- _lastKey.setAscii(0);
- _lastKey.setKeycode(0);
+ _lastKey.setKey(0);
}
@@ -78,25 +77,21 @@ namespace CEGUI {
keyCode = _lastKey.keycode();
}
_state = pushed;
- _lastKey.setAscii(keyAscii);
- _lastKey.setKeycode(tolower(keyCode));
+ _lastKey.setKey(keyAscii, tolower(keyCode));
- key.setAscii(keyAscii);
- key.setKeycode(tolower(keyCode));
+ key.setKey(keyAscii, tolower(keyCode));
return EventsBuffer::simulateKey(&key, pushed);
}
else if (_state && !pushed) { // cursor is in some forbidden region and is up
_state = false;
- key.setAscii(_lastKey.ascii());
- key.setKeycode(_lastKey.keycode());
+ key = _lastKey;
return EventsBuffer::simulateKey(&key, false);
} else
return false;
}
else if (_state && !pushed) { // cursor left the keyboard area and is up
_state = false;
- key.setAscii(_lastKey.ascii());
- key.setKeycode(_lastKey.keycode());
+ key = _lastKey;
return EventsBuffer::simulateKey(&key, false);
} else
return false;