GetCurrentKeyState

From SCAR Divi Manual
Revision as of 15:14, 10 November 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function GetCurrentKeyState(const VKey: Byte): Boolean; </source> ==Availability== SCAR Divi 3.35 > Current ==Description==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function GetCurrentKeyState(const VKey: Byte): Boolean;

Availability

SCAR Divi 3.35 > Current

Description

Gets the state of a key instantly from the active client. This means that it will return true if the key is currently being pressed.

Example

begin
  repeat
    Wait(500)
  until GetCurrentKeyState(VK_DOWN);
  WriteLn('Pressed down');
end.

See Also