mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-06-01 10:08:49 +02:00
Vibrate on OSC roll-over button presses too
This commit is contained in:
parent
e67fe52145
commit
85149fc23f
|
@ -139,7 +139,8 @@ class OnScreenControllerView @JvmOverloads constructor(context : Context, attrs
|
|||
button.touchPointerId = pointerId
|
||||
if (button.onFingerDown(x, y))
|
||||
onButtonStateChangedListener?.invoke(button.buttonId, ButtonState.Pressed)
|
||||
if (hapticFeedback) vibrator.vibrate(effectClick)
|
||||
if (hapticFeedback)
|
||||
vibrator.vibrate(effectClick)
|
||||
performClick()
|
||||
handled = true
|
||||
}
|
||||
|
@ -159,6 +160,8 @@ class OnScreenControllerView @JvmOverloads constructor(context : Context, attrs
|
|||
otherButton.partnerPointerId = fingerId
|
||||
if (otherButton.onFingerDown(x, y))
|
||||
onButtonStateChangedListener?.invoke(otherButton.buttonId, ButtonState.Pressed)
|
||||
if (hapticFeedback)
|
||||
vibrator.vibrate(effectClick)
|
||||
performClick()
|
||||
handled = true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user