Permalink
Browse files

TouchInput: only right click if we arent already ignoring finger ups

if we are in a gesture for example we dont want to inadvertently issue a right click
  • Loading branch information...
1 parent f06ff28 commit cb337660a08a569dabf694b0887f7e31c0f9cb3a @bradallred bradallred committed May 24, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 gemrb/plugins/SDLVideo/SDL20Video.cpp
@@ -356,7 +356,8 @@ int SDL20VideoDriver::SwapBuffers(void)
int SDL20VideoDriver::PollEvents()
{
- if (firstFingerDownTime
+ if (ignoreNextFingerUp <= 0
+ && firstFingerDownTime
&& GetTickCount() - firstFingerDownTime >= TOUCH_RC_NUM_TICKS) {
// enough time has passed to transform firstTouch into a right click event
int x = firstFingerDown.x;

0 comments on commit cb33766

Please sign in to comment.