Thema: Delphi Figur mit Tasten Bewegen

Einzelnen Beitrag anzeigen

Benutzerbild von jim_raynor
jim_raynor

Registriert seit: 17. Okt 2004
Ort: Berlin
1.251 Beiträge
 
Delphi 5 Standard
 
#10

Re: Figur mit Tasten Bewegen

  Alt 14. Jan 2006, 10:17
Zitat von Windows SDK:
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. The return value is zero if a window in another thread or process currently has the keyboard focus.
Also ein Vergleich auf <>0 bringt nicht das gewünschte Ergebnis. Wenn die Taste gedrückt wird, ist das höchstwertige Bit 1 was bei Integer eine negative Zahl bedeutet
Christian Reich
Schaut euch mein X-COM Remake X-Force: Fight For Destiny ( http://www.xforce-online.de ) an.
  Mit Zitat antworten Zitat