SWY1985 / CivOne

An open source implementation of Sid Meier's Civilization.
http://www.civone.org/
Creative Commons Zero v1.0 Universal
244 stars 49 forks source link

Keyboard input not buffered #338

Open AlexFolland opened 7 years ago

AlexFolland commented 7 years ago

In Civilization, if you press a key twice in succession, the second press is buffered for quick, smooth movement. In CivOne, subsequent presses before the first movement animation is finished are ignored. I made a video demonstrating this behavior in CivOne and Civilization.

http://lex.clansfx.co.uk/requested/CivOnenoinputbuffer.mkv

I'm pressing the keys hard in the video so the mic can pick up the keyboard clacking, as it's hard to tell when I'm pressing the keys without the audio. Don't worry! I'm not angry! Haha. I'm just trying to demonstrate the issue clearly.

SWY1985 commented 7 years ago

I had input buffering intially but that caused other nasty side effects. I'm going to have to find a good way of implementing this before re-enabling the input buffering.