Advertisement

Key_Up(x)

Started by April 01, 2000 09:26 PM
1 comment, last by King 24 years, 8 months ago
I found a variable sort of thing, i''m really not familiar with, but it allows you to read a key that is being pressed by using the GetAsyncKeyState() function, i know it gets the keys state.... blah, to make a short story shorter this is what it looks like when defined. #define KEY_DOWN(x) GetAsyncKeyState(x)&0x8000 i was wondering if i could use the same idea to get the key state as not being pressed. so it would be KEY_UP sort of value. - king171@hotmail.com
- http://www.cfxweb.net/mxf/
can''t you just go like..
#define KEY_UP(x) !(GetAsyncKeyState(x)&0x8000)
-werdup-
Advertisement
That''s not a variable, it''s a macro.

/. Muzzafarath
I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?" - Larry Wall

This topic is closed to new replies.

Advertisement