Closed cgaebel closed 12 years ago
Do we have support for key presses (rather than just key down testing)?
Test for key down, then wait for a key up before finally running it. Can you think of a way to abstract that out into a helper?
I'll write it tomorrow if you can.
On Wed, Mar 7, 2012 at 10:56 PM, Ben Foppa reply@reply.github.com wrote:
Do we have support for key presses (rather than just key down testing)?
Reply to this email directly or view it on GitHub: https://github.com/RobotGymnast/Chess/issues/11#issuecomment-4384402
That's not how keypresses work, though. They go immediately on key down, and wait for key up to be run again. I'll work on it if you don't get around to it first.
4e6a84ea64964d123b3f406122992955f8a3ac10
user presses "U" button on keyboard, undoes last move