aboutsummaryrefslogtreecommitdiff
path: root/backends/wince/CEActionsSmartphone.cpp
diff options
context:
space:
mode:
authorNicolas Bacca2004-12-21 00:31:58 +0000
committerNicolas Bacca2004-12-21 00:31:58 +0000
commit22aac69fe5c3ef2f719c5348ef85510513191eea (patch)
tree120065edd27e5acbd6940c1361c413e48ece95b5 /backends/wince/CEActionsSmartphone.cpp
parent1bd0c66715f4229059f2eb586455e68bff0b3128 (diff)
downloadscummvm-rg350-22aac69fe5c3ef2f719c5348ef85510513191eea.tar.gz
scummvm-rg350-22aac69fe5c3ef2f719c5348ef85510513191eea.tar.bz2
scummvm-rg350-22aac69fe5c3ef2f719c5348ef85510513191eea.zip
Cleanup mouseclick emulation (and make the new about dialog happy)
svn-id: r16222
Diffstat (limited to 'backends/wince/CEActionsSmartphone.cpp')
-rw-r--r--backends/wince/CEActionsSmartphone.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/backends/wince/CEActionsSmartphone.cpp b/backends/wince/CEActionsSmartphone.cpp
index 1dfd7af190..db27395f32 100644
--- a/backends/wince/CEActionsSmartphone.cpp
+++ b/backends/wince/CEActionsSmartphone.cpp
@@ -146,6 +146,14 @@ CEActionsSmartphone::~CEActionsSmartphone() {
bool CEActionsSmartphone::perform(ActionType action, bool pushed) {
if (!pushed) {
+ switch (action) {
+ case SMARTPHONE_ACTION_RIGHTCLICK:
+ _mainSystem->add_right_click(false);
+ return true;
+ case SMARTPHONE_ACTION_LEFTCLICK:
+ _mainSystem->add_left_click(false);
+ return true;
+ }
return false;
}
@@ -155,10 +163,10 @@ bool CEActionsSmartphone::perform(ActionType action, bool pushed) {
EventsBuffer::simulateKey(&_key_action[action]);
return true;
case SMARTPHONE_ACTION_RIGHTCLICK:
- _mainSystem->add_right_click();
+ _mainSystem->add_right_click(true);
return true;
case SMARTPHONE_ACTION_LEFTCLICK:
- _mainSystem->add_left_click();
+ _mainSystem->add_left_click(true);
return true;
case SMARTPHONE_ACTION_UP:
_mainSystem->move_cursor_up();