From 83bc93601f8e9c42284a6900fd488663edc1ed84 Mon Sep 17 00:00:00 2001 From: lynxnb Date: Wed, 22 Mar 2023 17:40:00 +0100 Subject: [PATCH] Use `EFFECT_TICK` instead of `CLICK` as OSC vibration effect --- .../java/emu/skyline/input/onscreen/OnScreenControllerView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/emu/skyline/input/onscreen/OnScreenControllerView.kt b/app/src/main/java/emu/skyline/input/onscreen/OnScreenControllerView.kt index 024f3330..702bade7 100644 --- a/app/src/main/java/emu/skyline/input/onscreen/OnScreenControllerView.kt +++ b/app/src/main/java/emu/skyline/input/onscreen/OnScreenControllerView.kt @@ -67,7 +67,7 @@ class OnScreenControllerView @JvmOverloads constructor(context : Context, attrs // Populated externally by the activity, as retrieving the vibrator service inside the view crashes the layout editor lateinit var vibrator : Vibrator - private val effectClick = VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK) + private val effectClick = VibrationEffect.createPredefined(VibrationEffect.EFFECT_TICK) // Ensure controls init happens after editInfo is initialized so that the buttons have a valid reference to it private val controls = Controls(this)