aboutsummaryrefslogtreecommitdiff
path: root/backends/wince/CEgui/PanelKeyboard.cpp
diff options
context:
space:
mode:
authorNicolas Bacca2004-05-09 14:47:26 +0000
committerNicolas Bacca2004-05-09 14:47:26 +0000
commitc21f38bc009d1517b1b917603919bb23f3802b2a (patch)
treeee2a5380c77d6b48fbed17e70a5915bb37d8af0f /backends/wince/CEgui/PanelKeyboard.cpp
parenta533dde2e7dfae78fa7bab2a5218bab8c5a4e267 (diff)
downloadscummvm-rg350-c21f38bc009d1517b1b917603919bb23f3802b2a.tar.gz
scummvm-rg350-c21f38bc009d1517b1b917603919bb23f3802b2a.tar.bz2
scummvm-rg350-c21f38bc009d1517b1b917603919bb23f3802b2a.zip
Switch to EventsBuffer
svn-id: r13822
Diffstat (limited to 'backends/wince/CEgui/PanelKeyboard.cpp')
-rw-r--r--backends/wince/CEgui/PanelKeyboard.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/backends/wince/CEgui/PanelKeyboard.cpp b/backends/wince/CEgui/PanelKeyboard.cpp
index e7beb17d46..e2f95aeda2 100644
--- a/backends/wince/CEgui/PanelKeyboard.cpp
+++ b/backends/wince/CEgui/PanelKeyboard.cpp
@@ -29,9 +29,8 @@ namespace CEGUI {
const char KEYBOARD_MAPPING_ALPHA_LOW[] = {"nopqrstuvwxyz"};
const char KEYBOARD_MAPPING_NUMERIC_LOW[] = {"67890"};
- PanelKeyboard::PanelKeyboard(WORD reference, KeysBuffer *buffer) : Toolbar() {
+ PanelKeyboard::PanelKeyboard(WORD reference) : Toolbar() {
setBackground(reference);
- _buffer = buffer->Instance();
}
@@ -73,12 +72,10 @@ namespace CEGUI {
keyCode = 10;
}
- if (keyAscii != 0) {
+ if (keyAscii != 0 && pushed) {
_key.setAscii(keyAscii);
_key.setKeycode(tolower(keyAscii));
- _key.setPushed(pushed);
- _buffer->add(&_key);
- return true;
+ return EventsBuffer::simulateKey(&_key);
}
else
return false;