doubble hotkey?

i am creating a game and i and when the user presses control and an arrow key to give them a boost.

what i have so far is

1
2
3
4
5
case VK_CONTROL && VK_RIGHT:

giveboost();

break;


it doesnt work at all. deos any one know how to do this?
Last edited on
If you are switching cases, you can't have two values simultaneously.
You should change the way you are getting input or in case VK_RIGHT check if Ctrl is pressed
ok thanks that worked :)
Last edited on
Topic archived. No new replies allowed.