Skip to content
Advertisement

Tag: key

C++ | How to get input from the arrow keys with Linux

I’m super new to C++ and was wanting to add arrow key functionality to my snake game. I’ve been scouring the Internet trying to find a way to do this without “conio.h” as I am using Linux. How would I go about doing this and can I get some example code? Thank you! Answer You’d be best off using ncurses

Advertisement