Vibration: allow BoardConfig to disable vibration for a device.

Change-Id: Ibd2f67391ce6d7774498839829e0de9391508781
This commit is contained in:
bigbiff bigbiff
2019-03-12 19:28:31 -04:00
committed by Ethan Yonker
parent 9220dbab44
commit 3ed778ad63
16 changed files with 73 additions and 0 deletions

3
gui/button.cpp Normal file → Executable file
View File

@@ -248,7 +248,10 @@ int GUIButton::NotifyTouch(TOUCH_STATE state, int x, int y)
} else {
if (last_state == 0) {
last_state = 1;
#ifndef TW_NO_HAPTICS
DataManager::Vibrate("tw_button_vibrate");
#endif
if (mButtonLabel != NULL)
mButtonLabel->isHighlighted = true;
if (mButtonImg != NULL)