I use DirectX DirectInput.dll for that (probably not the best way but who cares). You need the whole DirectX SDK for that though.
Originally Posted by boom.. while ( 1 == 1 ) { if (GetAsyncKeyState(0x02)) { cout<< "Right mouse button!!!"; } } Do you always use that while loop? While (true) { ... } is better.