Im working on a final project for grade 11 and I need to know how to use ASCII. I've looked for tutorials and other information, but its too complicated for me. Basicaly what I need to do is have an event happen when the arow keys are pressed. I don't know the syntax (or even the name of the function for that matter) to see what key has been pressed. Im hoping to have case statemens so for instance if the ascii code was 77 it would be
This is probably a false hope, but still... Any help or resources would be greatly appreciated!Code://This is probably more like pseudo code than anything... int x,y; switch (KeyCode) { case 77: x ++; y ++; SetCursorPos(x,y); }
Thanks!