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