is there different key codes for vista. i have a program that i need to be able to push the up button bit it doesnt work i have tryed some different things.
1 2 3 4 5 6 7 8
#define VK_UP 0x26
void handleKeypress(unsignedchar key, int x, int y) {
switch (key) {
case VK_UP:
exit(0);
break;
}
}
1 2 3 4 5 6 7 8
#define VK_UP 38
void handleKeypress(unsignedchar key, int x, int y) {
switch (key) {
case VK_UP:
exit(0);
break;
}
}
im so desperate i even tried just putting in random number. i have been searching google for the past hour. im starting to get frustrated. especially because the escape virtual key works. i dont know why up isnt working.