summaryrefslogtreecommitdiffstats
path: root/gui/keyboard.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-02-05 15:02:06 +0100
committerEthan Yonker <dees_troy@teamw.in>2014-02-07 16:53:41 +0100
commit03db326c64b246974d9cfaba02406d7bd77d8c37 (patch)
tree657ab4029909cfa614c9cee91f19a27b55da1763 /gui/keyboard.cpp
parentAdd haptic feedback (diff)
downloadandroid_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.tar
android_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.tar.gz
android_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.tar.bz2
android_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.tar.lz
android_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.tar.xz
android_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.tar.zst
android_bootable_recovery-03db326c64b246974d9cfaba02406d7bd77d8c37.zip
Diffstat (limited to '')
-rw-r--r--gui/keyboard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/keyboard.cpp b/gui/keyboard.cpp
index 97a980a4e..36106c7c1 100644
--- a/gui/keyboard.cpp
+++ b/gui/keyboard.cpp
@@ -389,7 +389,6 @@ 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;
@@ -421,7 +420,6 @@ int GUIKeyboard::NotifyTouch(TOUCH_STATE state, int x, int y)
if (highlightRenderCount != 0)
mRendered = false;
highlightRenderCount = 0;
- DataManager::Vibrate("tw_vibrate");
startSelection = 0;
}
break;
@@ -478,6 +476,7 @@ int GUIKeyboard::NotifyTouch(TOUCH_STATE state, int x, int y)
startSelection = 0;
break;
} else if (state == TOUCH_RELEASE && was_held == 0) {
+ DataManager::Vibrate("tw_keyboard_vibrate");
if ((int)keyboard_keys[currentLayout - 1][rowIndex][indexx].key < KEYBOARD_SPECIAL_KEYS && (int)keyboard_keys[currentLayout - 1][rowIndex][indexx].key > 0) {
// Regular key
PageManager::NotifyKeyboard(keyboard_keys[currentLayout - 1][rowIndex][indexx].key);
@@ -503,6 +502,7 @@ int GUIKeyboard::NotifyTouch(TOUCH_STATE state, int x, int y)
PageManager::NotifyKeyboard(keyboard_keys[currentLayout - 1][rowIndex][indexx].key);
} else if ((int)keyboard_keys[currentLayout - 1][rowIndex][indexx].longpresskey < KEYBOARD_SPECIAL_KEYS && (int)keyboard_keys[currentLayout - 1][rowIndex][indexx].longpresskey > 0) {
// Long Press Key
+ DataManager::Vibrate("tw_keyboard_vibrate");
PageManager::NotifyKeyboard(keyboard_keys[currentLayout - 1][rowIndex][indexx].longpresskey);
}
} else if (state == TOUCH_REPEAT) {