Advertisement

Keypressed

Started by April 01, 2004 04:07 AM
1 comment, last by Ructions 20 years, 11 months ago
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
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.
Advertisement
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.

This topic is closed to new replies.

Advertisement