Reputation: 26317
I'm looking for a simple way to run something on a unix machine and track when a specific key is pressed. So when someone hits a key on their keyboard, it fires some sort of event.
I am not a c/c++ dev so if someone could point me in the right direction. Running OSX
Upvotes: 0
Views: 482
Reputation: 1494
Any GUI toolkit will provide an event loop that deals with keyboard and other events.
Don't build one yourself if you aren't a pro.
Upvotes: 1