Remove delay before vibration begins.

This commit is contained in:
player-03
2024-07-07 16:17:05 -04:00
committed by GitHub
parent f0ae60d1ef
commit c85c50c4bf

View File

@@ -403,7 +403,8 @@ public class GameActivity extends SDLActivity {
int count = (int)Math.ceil (duration / (double) periodMS);
long[] pattern = new long[count];
for (int i = 0; i < count; i++) {
// the first entry is the delay before vibration starts, so leave it as 0
for (int i = 1; i < count; i++) {
pattern[i] = periodMS;