Vibration: allow BoardConfig to disable vibration for a device.
Change-Id: Ibd2f67391ce6d7774498839829e0de9391508781
This commit is contained in:
committed by
Ethan Yonker
parent
9220dbab44
commit
3ed778ad63
Regular → Executable
+8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user