Socrates877
Newcomer
- Joined
- Oct 27, 2003
- Messages
- 3
Right now I'm using directinput to get input from the keyboard. I'm designing my own version of tetris to learn directx 9 (c#). I get lots of keyboard input. I mean, it's like, really responsive.
For example, I have one key mapped to a function that rotates a block as it's falling down the screen. I barely tap the key and the block must rotate about 10 times (and it should only rotate it 1/4). And jesus help you if you hold the button down. The amount of air coming off the block-turned-windmill will blow you back to your neighbors house.
Ok, so question is, how can I make the block only move once each time the user presses the button? I essentially want to create a keyup event.
For example, I have one key mapped to a function that rotates a block as it's falling down the screen. I barely tap the key and the block must rotate about 10 times (and it should only rotate it 1/4). And jesus help you if you hold the button down. The amount of air coming off the block-turned-windmill will blow you back to your neighbors house.
Ok, so question is, how can I make the block only move once each time the user presses the button? I essentially want to create a keyup event.