From 3ed778ad6389c901077fee38bb77abd55dd4eba4 Mon Sep 17 00:00:00 2001 From: bigbiff bigbiff Date: Tue, 12 Mar 2019 19:28:31 -0400 Subject: Vibration: allow BoardConfig to disable vibration for a device. Change-Id: Ibd2f67391ce6d7774498839829e0de9391508781 --- gui/checkbox.cpp | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 gui/checkbox.cpp (limited to 'gui/checkbox.cpp') diff --git a/gui/checkbox.cpp b/gui/checkbox.cpp old mode 100644 new mode 100755 index de63cba36..025a803a2 --- a/gui/checkbox.cpp +++ b/gui/checkbox.cpp @@ -179,7 +179,10 @@ int GUICheckbox::NotifyTouch(TOUCH_STATE state, int x __unused, int y __unused) lastState = (lastState == 0) ? 1 : 0; DataManager::SetValue(mVarName, lastState); +#ifndef TW_NO_HAPTICS DataManager::Vibrate("tw_button_vibrate"); +#endif + } return 0; } -- cgit v1.2.3