Skip to main content
GameDev.net gamedev.net
🔒 Locked

Keypressed

Started by Ructions Apr 1, 2004 at 4:07 AM 1 replies 300+ views
Original Post
Ructions
Ructions
i was wondering is there a way in windows where you can get when a key is pressed. Not when it is pressed down and then pressed up but when these to operations are together so it is only executed when the two happen together. Hope you understand what i mean Thanks ructions
Tree Penguin
Tree Penguin
You mean when a user releases the key after pressing it? If so, the WM_KEYUP message does the thing, else clarify what you need a little more.
Wudan
Wudan
Just set up a cool struct and a few functions to handle your keys. It''ll be extensible, you can set flags to specify what happens when, it doesn''t take much creativity to come up with something like that.

Like he said - the WM_KEYUP message.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.