pokemon-speedrunning / gambatte-speedrun

Fork of https://github.com/sinamas/gambatte with Pokemon speedrunning-related changes.
GNU General Public License v2.0
94 stars 27 forks source link

Cannot bind +/- on a controller axis to the same input #36

Open Buurazu opened 4 years ago

Buurazu commented 4 years ago

https://github.com/pokemon-speedrunning/gambatte-speedrun/blob/98ef6ad279478a49963b788aaa28c1c6e42b03ae/gambatte_qt/src/framework/src/inputdialog.cpp#L389

https://discordapp.com/channels/88066218971385856/686674807093198916/692590795986960395

If you bind the + and - on an axis to the same input (namely binding Select to LT/RT, to match Gamecube functionality), only the second one will work.

A temporary array of booleans used to not "unset" and "set" in the same for loop could fix it?