GetAsyncKeyState( ), equivalent on OS X?
Hi guys, I'm making a text-based side scroller, and to do so I need to get non-blocking keyboard input to the console.
The windows version of the game uses the GetAsyncKeyState( ) command from the windows api, so I was wondering if there was some sort of equivalent function on the OS X side of things?
Thanks much
The windows version of the game uses the GetAsyncKeyState( ) command from the windows api, so I was wondering if there was some sort of equivalent function on the OS X side of things?
Thanks much
Couldn't you just use getch, getc, or getchar?
Nope, those block. I haven't gotten this working myself, but try the ncurses man page.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Taking advantage of 3DNow, SSE, MMX or whatever the PPC equivalent is called... | Jones | 3 | 3,152 |
Oct 24, 2006 07:06 AM Last Post: Jones |
|
| ReceiveNextEvent Cocoa Equivalent? | maaaaark | 30 | 10,394 |
Apr 9, 2005 08:38 PM Last Post: Josh |
|

