RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
1.01k stars 175 forks source link

Controller input processing depends on framerate #2918

Open ohlidalp opened 2 years ago

ohlidalp commented 2 years ago

If you press a controller key/button (including mouse buttons) many times in a row, chances are some presses will be ignored by the game. There are 2 reasons for that:

paroj commented 1 year ago

Fixing this would be a major change

actually, it is fairly easy - you just need to change your input backend from a key-table to an event-queue. ImGui did that recently too: https://github.com/ocornut/imgui/issues/4921

SDL2 queues up events internally by default, OIS can do that too probably (maybe?)