fortheusers / hb-appstore

Homebrew App Store - GUI for downloading/managing homebrew apps
https://hb-app.store
GNU General Public License v3.0
1.08k stars 64 forks source link

Key repeat fires too quickly for gamepad controls #8

Closed vgmoose closed 6 years ago

vgmoose commented 6 years ago

If a button is held for too long after pushing it, it will fire more than once. I tried to swap this out for a keyup event, but the same problem continues. On the PC version it can be resolved by setting the event.key.keysym.sym to another symbol but that doesn't work on Switch.

It could also have to do with the SDL1.2 port, and might be resolved when transitioning to SDL2

vgmoose commented 6 years ago

Resolved by responding to SDL events as they come in rather than polling.

Now the opposite problem exists, buttons cannot be held down to fire repeatedly as of https://github.com/vgmoose/hb-appstore/commit/467448246518f78e4a3d5b9378a80af780442645 (but this is planned for 2.0)