summaryrefslogtreecommitdiffstats
path: root/gui/patternpassword.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x[-rw-r--r--]gui/patternpassword.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/patternpassword.cpp b/gui/patternpassword.cpp
index 5559f9dd8..a75ed156b 100644..100755
--- a/gui/patternpassword.cpp
+++ b/gui/patternpassword.cpp
@@ -370,7 +370,11 @@ int GUIPatternPassword::NotifyTouch(TOUCH_STATE state, int x, int y)
mTrackingTouch = true;
ResetActiveDots();
ConnectDot(dot_idx);
+
+#ifndef TW_NO_HAPTICS
DataManager::Vibrate("tw_button_vibrate");
+#endif
+
mCurLineX = x;
mCurLineY = y;
mNeedRender = true;
@@ -386,7 +390,11 @@ int GUIPatternPassword::NotifyTouch(TOUCH_STATE state, int x, int y)
{
ConnectIntermediateDots(dot_idx);
ConnectDot(dot_idx);
+
+#ifndef TW_NO_HAPTICS
DataManager::Vibrate("tw_button_vibrate");
+#endif
+
}
mCurLineX = x;