Key_Up(x)

Started by
1 comment, last by King 24 years 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/
Advertisement
can''t you just go like..
#define KEY_UP(x) !(GetAsyncKeyState(x)&0x8000)
-werdup-
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