
Code: Select all
For k=0 To 255 : GetAsyncKeyState_(k) : Next
but I think it's probably not as fast or as optimized as it could be.
I miss the old C64 days of just doing POKE 198,0 to do it.

Code: Select all
For k=0 To 255 : GetAsyncKeyState_(k) : Next
Code: Select all
clearBuffer = AllocateMemory(256)
..
SetKeyboardState_(clearBuffer)
Code: Select all
Repeat
Sleep_(1)
;For k=0 To 255 : GetAsyncKeyState_(k) : Next
If GetAsyncKeyState_(#VK_SHIFT)<>0 And GetAsyncKeyState_(#VK_LBUTTON)<>0
MessageRequester("test","I only want to see this when pressed together")
EndIf
ForEver