From cc3a61a522d0503d90514d27bd77ee6684cc7409 Mon Sep 17 00:00:00 2001 From: codokie <151087174+codokie@users.noreply.github.com> Date: Thu, 9 Apr 2026 12:15:12 +0300 Subject: [PATCH] Android/overlay-haptics: Increase amplitude --- .../org/dolphinemu/dolphinemu/utils/HapticsProvider.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/HapticsProvider.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/HapticsProvider.kt index 437e1e48cb..074ec73816 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/HapticsProvider.kt +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/utils/HapticsProvider.kt @@ -87,10 +87,11 @@ class HapticsProvider( ): IntArray { // Note: It is recommended that these values differ by a ratio of 1.4 or more, // so the difference in the amplitude of the vibration can be easily perceived. + // Value range is between 0 and 255 (VibrationEffect.MAX_AMPLITUDE). return when (effect) { - HapticEffect.QUICK_FALL -> intArrayOf(0, (180 * scale).toInt()) - HapticEffect.QUICK_RISE -> intArrayOf(0, (128 * scale).toInt()) - HapticEffect.LOW_TICK -> intArrayOf(0, (90 * scale).toInt()) + HapticEffect.QUICK_FALL -> intArrayOf(0, (255f * scale).toInt()) + HapticEffect.QUICK_RISE -> intArrayOf(0, (180f * scale).toInt()) + HapticEffect.LOW_TICK -> intArrayOf(0, (128f * scale).toInt()) } }