Hifle zu GetAsyncKeyState??
-
Hi,
kann mir jemand erklären warum hinter dem Vergleichsoperator GetAsyncKeyState(i) == -32767
-32767 steht. komm nicht drauf

-
-32767 entspricht in der 2k Darstellung 1000000000000001. Und in der Hilfe steht:
If the function succeeds, the return value specifies whether the key was pressed since the last call to GetAsyncKeyState, and whether the key is currently up or down. If the most significant bit is set, the key is down, and if the least significant bit is set, the key was pressed after the previous call to GetAsyncKeyState. However, you should not rely on this last behavior; for more information, see the Remarks.
-
Dieser Thread wurde von Moderator/in pumuckl aus dem Forum C++ in das Forum WinAPI verschoben.
Im Zweifelsfall bitte auch folgende Hinweise beachten:
C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?Dieses Posting wurde automatisch erzeugt.