diff options
| -rw-r--r-- | backends/platform/wince/CEkeys/EventsBuffer.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/platform/wince/CEkeys/EventsBuffer.cpp b/backends/platform/wince/CEkeys/EventsBuffer.cpp index f89b851280..ca8c2eee58 100644 --- a/backends/platform/wince/CEkeys/EventsBuffer.cpp +++ b/backends/platform/wince/CEkeys/EventsBuffer.cpp @@ -53,7 +53,10 @@ namespace CEKEYS {  	bool EventsBuffer::simulateMouseLeftClick(int x, int y, bool pushed) {  		SDL_Event ev = {0}; +		static bool state = false; +		if (pushed == state) return 0; +		state = pushed;  		ev.type = (pushed ? SDL_MOUSEBUTTONDOWN : SDL_MOUSEBUTTONUP);  		ev.button.button = SDL_BUTTON_LEFT;  		ev.button.x = x; @@ -63,7 +66,10 @@ namespace CEKEYS {  	bool EventsBuffer::simulateMouseRightClick(int x, int y, bool pushed) {  		SDL_Event ev = {0}; +		static bool state = false; +		if (pushed == state) return 0; +		state = pushed;  		ev.type = (pushed ? SDL_MOUSEBUTTONDOWN : SDL_MOUSEBUTTONUP);  		ev.button.button = SDL_BUTTON_RIGHT;  		ev.button.x = x;  | 
