NagyD / SDLPoP

An open-source port of Prince of Persia, based on the disassembly of the DOS version.
GNU General Public License v3.0
1.1k stars 140 forks source link

Register quick key presses #293

Closed FluffyQuack closed 1 year ago

FluffyQuack commented 1 year ago

If the user is very quick with key presses (that is, the user presses and releases a key within the 83.333ms window between game updates), then the game ignores those key presses. This PR fixes that and makes the controls feel responsive overall. I find it's especially noticeable during combat where you might briefly tap up/shift to parry/attack.