Is there any cross-platform way to use keyboard arrows in c++?

Asked

Viewed 36 times

1

In windows has the library conio.h. if I am not mistaken it is possible to use the arrow keys on the keyboard on Linux using ncurses. h, but I wanted a more cross-platform solution where the same code would compile on several different operating systems not having to change anything (or very little) to work.

Does anyone know a solution to my problem ? Something like a function present in the standard C++ library or a conium port. h for Linux or an ncurses port for windows

  • As far as I know there is no cross-platform solution

  • Do you know if there’s anything like it in the QT libraries? So I mix the languages and it’s all right

  • Or some library that is non-standard but cross-platform ?

  • Not cross-platform. But some frameworks already deal with these problems such as SDL, Allegro, Irrlicht and others

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.