v2.3.1: improved vibration checkbox slightly

This commit is contained in:
Evan Debenham
2024-01-25 13:18:57 -05:00
parent f36dda3064
commit 5f735ffe6e

View File

@@ -637,10 +637,15 @@ public class WndSettings extends WndTabbed {
protected void onClick() {
super.onClick();
SPDSettings.vibration(checked());
if (checked()){
Game.vibrate(250);
}
}
};
chkVibrate.checked(SPDSettings.vibration());
chkVibrate.enable(Game.platform.supportsVibration());
if (chkVibrate.active) {
chkVibrate.checked(SPDSettings.vibration());
}
add(chkVibrate);
}