You do need a library to get this kind of access to the keyboard. Each OS most likely provides a native way to do this, I would probably use a library that abstracts the details of the platform away, like SDL of SFML. No need to use multithreading for this.
Read a bit of documentation and maybe a tutorial on how to do keyboard input with SDL or SFML and post back if you can't figure it out.
Show differencesHistory of post edits
#1alvaro
Posted 29 October 2012 - 06:36 AM
You do need a library to get this kind of access to the keyboard. Each OS most likely provides a native way to do this, I would probably use a library that abstracts the details of the platform away, like SDL of SFML. No need to use multithreading for this.
Read a but of documentation and maybe a tutorial on how to do keyboard input with SDL or SFML and post back if you can't figure it out.
Read a but of documentation and maybe a tutorial on how to do keyboard input with SDL or SFML and post back if you can't figure it out.