bfops / Chess

Collaborative game-development effort in Haskell, OpenGL
MIT License
7 stars 0 forks source link

Undo #11

Closed cgaebel closed 12 years ago

cgaebel commented 12 years ago

user presses "U" button on keyboard, undoes last move

bfops commented 12 years ago

Do we have support for key presses (rather than just key down testing)?

cgaebel commented 12 years ago

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

bfops commented 12 years ago

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.

bfops commented 12 years ago

4e6a84ea64964d123b3f406122992955f8a3ac10