From 71e9b049c21fb01d558f49844d17e792c347a930 Mon Sep 17 00:00:00 2001 From: "Samer Diab (S.a.M.e.R_d)" Date: Tue, 7 Jan 2014 20:18:47 +0000 Subject: Add haptic feedback Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998 --- gui/keyboard.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gui/keyboard.cpp') diff --git a/gui/keyboard.cpp b/gui/keyboard.cpp index 95cdbf1c8..97a980a4e 100644 --- a/gui/keyboard.cpp +++ b/gui/keyboard.cpp @@ -30,6 +30,7 @@ #include #include #include +#include "../data.hpp" #include @@ -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; -- cgit v1.2.3