im currently working on a game, a 2 player trivia game speed round sorta thing. anyway, i want 1 user to use the numbers above the letters on the keyboard, and the other to use the num pad....is there any way to do this? THANKS! :confused:
Printable View
im currently working on a game, a 2 player trivia game speed round sorta thing. anyway, i want 1 user to use the numbers above the letters on the keyboard, and the other to use the num pad....is there any way to do this? THANKS! :confused:
Yes. I suppose that answer is insufficient. I will need to ask what OS and API you are using. For example in the win api you can do this
Code:LRESULT callback(HWND hwnd, UINT msg, WPARAM wparam,LPARAM lparam) {
switch(msg) {
case WM_KEYUP:
if((int) wparam == VK_NUMPAD5) {
MessageBox(hwnd, "hello", "message", MB_OK);
}
}
}