hajimehoshi / ebiten

Ebitengine - A dead simple 2D game engine for Go
https://ebitengine.org
Apache License 2.0
11.1k stars 665 forks source link

inpututil: `AppendJustReleasedGamepadButtons` and `AppendJustReleasedStandardGamepadButtons` return just-pressed buttons #3147

Closed hajimehoshi closed 1 month ago

hajimehoshi commented 1 month ago

Ebitengine Version

812feec1d58ba1f60cbf08f888ad7a0d408bedb8

Operating System

Go Version (go version)

go version go1.23.1 darwin/arm64

What steps will reproduce the problem?

Connect a gamepad and see the result of inpututil.AppendJustReleasedGamepadButtons or input.AppendJustReleasedStandardGamepadButtons

What is the expected result?

The result includes just released buttons, which were pressed in the last tick and not pressed in the current tick.

What happens instead?

The result included just pressed buttons, which were not pressed in the last tick and pressed in the current tick.

Anything else you feel useful to add?

No response