0

Is there another way to use arrow keys without using ncurses?

Just wondering if there is another way to take in arrow keys for controls without using the ncurses library?

24th Apr 2018, 7:30 AM
Kenneth Walcott
Kenneth Walcott - avatar
2 Respostas
+ 1
Not sure if this is the solution you're looking for, but you could use the wasd keys instead of the arrow keys. And check if the user input matches the ascii value associated with any of those keys. Simpler than checking for arrow key input
26th Apr 2018, 12:58 AM
Sam
Sam - avatar
0
Yeah that's how I figured you would have too without ncurses. Thanks!!
26th Apr 2018, 3:42 AM
Kenneth Walcott
Kenneth Walcott - avatar