mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-10 18:13:18 +01:00
internal/gamepad: bug fix: release IDirectInputDevice8W on disconnecting
Closes #2205
This commit is contained in:
parent
4d93e6248d
commit
bcb020627d
@ -570,6 +570,9 @@ func (g *nativeGamepad) update(gamepads *gamepads) (err error) {
|
||||
gamepads.remove(func(gamepad *Gamepad) bool {
|
||||
return &gamepad.nativeGamepad == g
|
||||
})
|
||||
if g.dinputDevice != nil {
|
||||
g.dinputDevice.Release()
|
||||
}
|
||||
}()
|
||||
|
||||
if g.usesDInput() {
|
||||
|
Loading…
Reference in New Issue
Block a user