Code: Select all
diff -u -d -r1.32.2.3 -r1.32.2.4
--- wince-sdl.cpp 27 Jan 2006 12:33:05 -0000 1.32.2.3
+++ wince-sdl.cpp 29 Jan 2006 23:08:09 -0000 1.32.2.4
@@ -1966,31 +1966,33 @@
fillMouseEvent(temp_event, ev.button.x, ev.button.y);
- // Check keyboard tap zone
- if (temp_event.mouse.y <= 20) {
- // Already tap initiated ?
- if (_tapTime) {
- int deltaX;
- int deltaY;
- if (temp_event.mouse.x > _tapX)
- deltaX = temp_event.mouse.x - _tapX;
- else
- deltaX = _tapX - temp_event.mouse.x;
- if (temp_event.mouse.y > _tapY)
- deltaY = temp_event.mouse.y - _tapY;
- else
- deltaY = _tapY - temp_event.mouse.y;
- if (deltaX <= 5 && deltaY <= 5 && (GetTickCount() - _tapTime < 1000))
- swap_panel_visibility();
- _tapTime = 0;
+ // Check keyboard tap zone
+ if (!_isSmartphone) {
+ if (temp_event.mouse.y <= 20) {
+ // Already tap initiated ?
+ if (_tapTime) {
+ int deltaX;
+ int deltaY;
+ if (temp_event.mouse.x > _tapX)
+ deltaX = temp_event.mouse.x - _tapX;
+ else
+ deltaX = _tapX - temp_event.mouse.x;
+ if (temp_event.mouse.y > _tapY)
+ deltaY = temp_event.mouse.y - _tapY;
+ else
+ deltaY = _tapY - temp_event.mouse.y;
+ if (deltaX <= 5 && deltaY <= 5 && (GetTickCount() - _tapTime < 1000))
+ swap_panel_visibility();
+ _tapTime = 0;
- }
- else {
- _tapTime = GetTickCount();
- _tapX = temp_event.mouse.x;
- _tapY = temp_event.mouse.y;
- }
- }
+ }
+ else {
+ _tapTime = GetTickCount();
+ _tapX = temp_event.mouse.x;
+ _tapY = temp_event.mouse.y;
+ }
+ }
+ }
if (_toolbarHandler.action(temp_event.mouse.x, temp_event.mouse.y, true)) {
if (!_toolbarHandler.drawn())