mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
internal/gamepad: improve resetting vibrations
This commit is contained in:
parent
90ac7d047d
commit
356c625601
@ -229,6 +229,7 @@ func (n *nativeGamepadXbox) hatState(hat int) int {
|
||||
|
||||
func (n *nativeGamepadXbox) vibrate(duration time.Duration, strongMagnitude float64, weakMagnitude float64) {
|
||||
if strongMagnitude <= 0 && weakMagnitude <= 0 {
|
||||
n.vib = false
|
||||
n.gameInputDevice.SetRumbleState(&_GameInputRumbleParams{
|
||||
lowFrequency: 0,
|
||||
highFrequency: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user