Download Now

    Reference IsKeyDown

    Declared in Codebot.Hardware.pas on line 418

    Return True if a key or mouse button is down at the time it is asked, rather than at the last scan. KeyCode is a VK_ code from Codebot.Platform, including the mouse buttons VK_LBUTTON, VK_RBUTTON, VK_MBUTTON, VK_XBUTTON1 and VK_XBUTTON2. VK_SHIFT, VK_CONTROL and VK_MENU are down if the key on either side of the keyboard is down. It can be called from any thread.
    function IsKeyDown(KeyCode: Integer): Boolean;