mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-27 01:55:28 +03:00
Use EFFECT_TICK
instead of CLICK
as OSC vibration effect
This commit is contained in:
parent
88e6fc9888
commit
83bc93601f
@ -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
|
// Populated externally by the activity, as retrieving the vibrator service inside the view crashes the layout editor
|
||||||
lateinit var vibrator : Vibrator
|
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
|
// Ensure controls init happens after editInfo is initialized so that the buttons have a valid reference to it
|
||||||
private val controls = Controls(this)
|
private val controls = Controls(this)
|
||||||
|
Loading…
Reference in New Issue
Block a user