Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
Fix touch on Sprint HTC One m8
Browse files Browse the repository at this point in the history
Change-Id: Ia9fba3be16a33b3cb0c4a3458398a2e60ba7f001
  • Loading branch information
Dees-Troy authored and Gerrit Code Review committed Apr 15, 2014
1 parent b1c6e05 commit 1eba56f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,16 +296,18 @@ static void * input_thread(void *cookie)
{
if (!drag)
{
if (x != 0 && y != 0) {
#ifdef _EVENT_LOGGING
LOGERR("TOUCH_START: %d,%d\n", x, y);
LOGERR("TOUCH_START: %d,%d\n", x, y);
#endif
if (PageManager::NotifyTouch(TOUCH_START, x, y) > 0)
state = 1;
drag = 1;
touch_and_hold = 1;
dontwait = 1;
key_repeat = 0;
gettimeofday(&touchStart, NULL);
if (PageManager::NotifyTouch(TOUCH_START, x, y) > 0)
state = 1;
drag = 1;
touch_and_hold = 1;
dontwait = 1;
key_repeat = 0;
gettimeofday(&touchStart, NULL);
}
#ifndef TW_NO_SCREEN_TIMEOUT
blankTimer.resetTimerAndUnblank();
#endif
Expand Down

0 comments on commit 1eba56f

Please sign in to comment.