Add haptic feedback

Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998
This commit is contained in:
Samer Diab (S.a.M.e.R_d)
2014-01-07 20:18:47 +00:00
committed by Gerrit Code Review
parent 4011c71f98
commit 71e9b049c2
10 changed files with 70 additions and 2 deletions

View File

@@ -30,6 +30,7 @@
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
#include "../data.hpp"
#include <string>
@@ -280,6 +281,7 @@ int GUIButton::NotifyTouch(TOUCH_STATE state, int x, int y)
} else {
if (last_state == 0) {
last_state = 1;
DataManager::Vibrate("tw_vibrate");
if (mButtonLabel != NULL)
mButtonLabel->isHighlighted = true;
if (mButtonImg != NULL)