osx - Seeking key event library for C++ on Mac -


i'm new c++ programmer moving on java , python. fun first project decided have go @ simple snake game. application has no gui: instead, print state of board console once per second.

what i'm looking way make snake turn arrow keys. thought simple; however, i'm working on mac, , libraries i've found handle mac input events objective-c libraries rather c++ ones.

does know of way capture key input events in c++ on mac?

for console applications ncurses way go handling key input.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -