summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gui/checkbox.cpp2
-rw-r--r--gui/fileselector.cpp2
-rw-r--r--gui/listbox.cpp2
-rw-r--r--gui/partitionlist.cpp4
4 files changed, 10 insertions, 0 deletions
diff --git a/gui/checkbox.cpp b/gui/checkbox.cpp
index b6d5e6348..8739c9c25 100644
--- a/gui/checkbox.cpp
+++ b/gui/checkbox.cpp
@@ -166,6 +166,8 @@ int GUICheckbox::NotifyTouch(TOUCH_STATE state, int x, int y)
DataManager::GetValue(mVarName, lastState);
lastState = (lastState == 0) ? 1 : 0;
DataManager::SetValue(mVarName, lastState);
+
+ DataManager::Vibrate("tw_button_vibrate");
}
return 0;
}
diff --git a/gui/fileselector.cpp b/gui/fileselector.cpp
index b7804fd86..1c2a8ccf0 100644
--- a/gui/fileselector.cpp
+++ b/gui/fileselector.cpp
@@ -783,6 +783,8 @@ int GUIFileSelector::NotifyTouch(TOUCH_STATE state, int x, int y)
if (startSelection < folderSize + fileSize)
{
+ DataManager::Vibrate("tw_button_vibrate");
+
if (startSelection < folderSize)
{
std::string oldcwd;
diff --git a/gui/listbox.cpp b/gui/listbox.cpp
index 670966401..626cbacf4 100644
--- a/gui/listbox.cpp
+++ b/gui/listbox.cpp
@@ -733,6 +733,8 @@ int GUIListBox::NotifyTouch(TOUCH_STATE state, int x, int y)
mList.at(actualSelection).selected = 1;
DataManager::SetValue(mVariable, str);
mUpdate = 1;
+
+ DataManager::Vibrate("tw_button_vibrate");
}
} else {
// This is for kinetic scrolling
diff --git a/gui/partitionlist.cpp b/gui/partitionlist.cpp
index abe0a38ad..35bf702bb 100644
--- a/gui/partitionlist.cpp
+++ b/gui/partitionlist.cpp
@@ -735,6 +735,8 @@ int GUIPartitionList::NotifyTouch(TOUCH_STATE state, int x, int y)
}
if (actualSelection < listSize && ListType == "mount") {
+ DataManager::Vibrate("tw_button_vibrate");
+
if (!mList.at(actualSelection).selected) {
if (PartitionManager.Mount_By_Path(mList.at(actualSelection).Mount_Point, true)) {
mList.at(actualSelection).selected = 1;
@@ -747,6 +749,8 @@ int GUIPartitionList::NotifyTouch(TOUCH_STATE state, int x, int y)
}
}
} else if (actualSelection < listSize && !mVariable.empty()) {
+ DataManager::Vibrate("tw_button_vibrate");
+
if (ListType == "storage") {
int i;
std::string str = mList.at(actualSelection).Mount_Point;