PDA

View Full Version : Using combinations (Alt+... and AltGr+...) for my console



Andreas J
09-29-2002, 08:23 AM
I'm working on a console that can take diferent type of commands, but i have a smal problem... I want to use diferent typ of combinations like Alt+1 and AltGr+0 etc. and when I try to do this I can't get anything to work the way I want... :-(

The solution that I'm using for the moment is the one NeHe used... and it is not realy working the way I want it to... so if there are any surgestions on what I am going to do to get this right, I will be happy to hear about them...

renaissanz
09-29-2002, 08:38 AM
The problem w/ the NeHe approach is that you are probably getting about 2 million instances of the same key (or none at all). The other option is to use the GetAsyncKeyState(Virtual Key) function (assuming VC++).