Add haptic feedback
Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998
diff --git a/gui/keyboard.cpp b/gui/keyboard.cpp
index 95cdbf1..97a980a 100644
--- a/gui/keyboard.cpp
+++ b/gui/keyboard.cpp
@@ -30,6 +30,7 @@
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
+#include "../data.hpp"
#include <string>
@@ -388,6 +389,7 @@
switch (state)
{
case TOUCH_START:
+ DataManager::Vibrate("tw_vibrate");
if (GetSelection(x, y) == 0) {
startSelection = -1;
was_held = 0;
@@ -419,6 +421,7 @@
if (highlightRenderCount != 0)
mRendered = false;
highlightRenderCount = 0;
+ DataManager::Vibrate("tw_vibrate");
startSelection = 0;
}
break;