GetAsyncKeyState( ), equivalent on OS X?

Nibbie
Posts: 1
Joined: 2009.08
Post: #1
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 Smile
Quote this message in a reply
Member
Posts: 26
Joined: 2008.08
Post: #2
Couldn't you just use getch, getc, or getchar?
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #3
Nope, those block. I haven't gotten this working myself, but try the ncurses man page.
Quote this message in a reply
Post Reply 

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,577 Oct 24, 2006 07:06 AM
Last Post: Jones
  ReceiveNextEvent Cocoa Equivalent? maaaaark 30 11,692 Apr 9, 2005 08:38 PM
Last Post: Josh