Im just going to list some of the various hotkeys and how to use them.
Code:
VK_F1
VK_F2
VK_F3
VK_F4
VK_F5
VK_F6
VK_F7
VK_F8
VK_F9
VK_F10
VK_F11
VK_F12
VK_INSERT
VK_HOME
VK_PGUP
VK_PGDOWN
VK_END
VK_DELETE
VK_UP
VK_DOWN
VK_LEFT
VK_RIGHT
VK_NUMPAD0
VK_NUMPAD1
VK_NUMPAD2
VK_NUMPAD3
VK_NUMPAD4
VK_NUMPAD5
VK_NUMPAD6
VK_NUMPAD7
VK_NUMPAD8
VK_NUMPAD9
All alphabet keys (A, B, C, etc.)
^Correct me if any of those are wrong^
There are more of course but honestly who needs that many.
So to use these you would do this:
Code:
if(GetAsyncKeyState(Hotkey of your choice)<0){
// do hack
}
or
Code:
if(GetAsyncKeyState(Hotkey of your choice)&1){
// do hack
}
So an example:
Code:
if(GetAsyncKeyState(VK_NUMPAD1)&1){
crosshair = !crosshair;
if(crosshair)
xhair(pDevice);
}
Now if you want to use an alphabet char you wouldn't use VK (Virtual Key) you would just use a char, so for example:
Code:
if(GetAsyncKeyState('Q')&1){
wireframe = !wireframe;
}
Hope that helps some noobs.