|
Post by scalion on Sept 23, 2019 16:14:07 GMT 1
After an automatic updating of my windows 10 windows is more slow and Btst(GetAsyncKeyState(VK_RIGHT), 16) dont work, i must now write Btst(GetAsyncKeyState(VK_RIGHT), 15) to test the keyboard state. Anyone have the same problem ?
|
|
|
Post by dragonjim on Oct 13, 2019 12:16:34 GMT 1
Hi Scalion,
GetAsyncKeyState has a Short return value so I would be surprised if testing the 17th bit - Btst(GetAsyncKeyState(VK_RIGHT), 16) - ever gave an accurate report. Unless there is something about the function that I am unaware, Btst(GetAsyncKeyState(VK_RIGHT), 15) should always be used to test the most significant bit of the API's return value.
|
|