I'm writing an application and I need to detect arrow keys inside it. C++ has the getch() function. We want to take the input and then add a check on ASCII values.
How can we detect input arrow keys? Thanks
I have written a Java class RawConsoleInput that uses JNA to call operating system functions of Windows and Unix. It can be used to read the arrow keys, but the character codes are different on Windows and Unix.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With