|
-
June 11th, 2008, 05:28 PM
#1
Detect what key has been pressed (even if not focused)
Hello, I am pretty new with C++ but I managed to make a simple desktop game. I have a problem, how can I detect what key is pressed (even if the window is not focused).
I am asking this becouse I don't have a window, the "players" are drawed directly on the desktop, and I need it to detect WHAT key has been pressed (global) .
So I need a function similar to this :
getKeyPress()
This will return what key has been pressed .
Can someone please help me with this ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|