eswartz / emul

Emulator (V9t9 and others)
Other
28 stars 4 forks source link

Keyboard buffering interferes with games #4

Closed eswartz closed 9 years ago

eswartz commented 9 years ago

From @endlos99's feedback:

""" To me, it feels choppy in that the Parsec ship jumps and/or keeps moving after I release the key. """

I think I messed that up when attempting to provide more reliable keyboard emulation for programs that use text input. Thus, keys held down, like arrow keys here, will be doled out long after you release the key.

I can't reproduce this. That's just the way Parsec works (again, verified with v9t9 v6.0 for DOS). The left/right arrows provide a thrust that accelerates the ship which then retains its velocity. As for up and down, I don't see that acting any differently than expected. I need to put on my scrutinizing glasses before accepting things as bugs.

eswartz commented 9 years ago

BTW, one possible cause for the weird behavior -- if you use the PC arrow keys, these are not the same as anything on the 99/4A (they are emulated as "Fctn-E" and "Fctn-X"). Thus there will be some "stickiness" using these as keys in a game. Instead, use "E" and "X" directly.

eswartz commented 9 years ago

I was wrong. When I artifically slow down the emulator, then it is clear that keys are retained for a while and really interfere with games. I have a fix for this.

eswartz commented 9 years ago

Fixed in 2015/07/21 release.