Question about ASCII codes
I am making a program that displays the elements of a struct to the screen. I want to be able to use the tab key to move to each area on the screen where the elements are displayed so that I can change the variables, and then hit F8 to update the file. I have this bit of code that checks the ascii code of a key press.
This works fine except that I want to be able to hit TAB to move forward and SHIFT TAB to move backwards. This code produces the same ascii code for both (9). How can I use SHIFT TAB?
static int Get_Code() // Get ASCII code from a key press
int ch = getch();
if ( ch == 0 || ch == 224 ) ch = 256 + getch();