Add haptic feedback
Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998
This commit is contained in:
committed by
Gerrit Code Review
parent
4011c71f98
commit
71e9b049c2
@@ -30,6 +30,7 @@
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include "../data.hpp"
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -388,6 +389,7 @@ int GUIKeyboard::NotifyTouch(TOUCH_STATE state, int x, int y)
|
||||
switch (state)
|
||||
{
|
||||
case TOUCH_START:
|
||||
DataManager::Vibrate("tw_vibrate");
|
||||
if (GetSelection(x, y) == 0) {
|
||||
startSelection = -1;
|
||||
was_held = 0;
|
||||
@@ -419,6 +421,7 @@ int GUIKeyboard::NotifyTouch(TOUCH_STATE state, int x, int y)
|
||||
if (highlightRenderCount != 0)
|
||||
mRendered = false;
|
||||
highlightRenderCount = 0;
|
||||
DataManager::Vibrate("tw_vibrate");
|
||||
startSelection = 0;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user