cin and arrow keys

As far as I can tell cin>> can't take information from arrow keys on the keyboard, is there a way to force it to take that information, or is there a different function that can do this?
Wait, the only answer that I found in that whole post was that the function select() might do the job, but it didn't mention which class in the STD library I would have to include. Anyone know what to #include in order to use select()?
There is no portable way to do this in standard C++. You need to use an OS-specific function or a third party library which does it for you.

Why would you skip to the answer that had 0 upvotes?

http://linux.die.net/man/2/select
Detecting keyboard input is going to be OS specific, and is not supported by the standard library. If you specify what OS your using, perhaps someone here can help you for that particular OS.
I'm on a windows 7 OS, I've got the SFML SDK up and running if that helps.
Last edited on
Thanks, I'm just going to have to work with Events and figure out how to use them.
Thanks again.
if (Keyboard::IsKeyPressed(Keyboard::KEYNAME))

Did you even look at the SFML doc's? A list of keyboard keys can be found here: http://www.sfml-dev.org/documentation/2.0/classsf_1_1Keyboard.php#acb4cacd7cc5802dec45724cf3314a142
Topic archived. No new replies allowed.