Thema: Delphi GetAsyncKeyState

Einzelnen Beitrag anzeigen

Benutzerbild von 3_of_8
3_of_8

Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
 
Turbo Delphi für Win32
 
#6

Re: GetAsyncKeyState

  Alt 20. Aug 2006, 21:56
Natürlich nicht.

Wenn die Taste gedrückt ist, steht in GetAsyncKeyState:

10000000 00000000

Und dann machst du and 1? Mach halt einfach <0, dann passt das.

Oder gleich:

if GetAsyncKeyState(myKey)=low(SmallInt) then...
Manuel Eberl
„The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
  Mit Zitat antworten Zitat