RAGE.Input.IsDown

From RAGE Multiplayer Wiki
Revision as of 12:49, 16 January 2019 by Frosty (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns true if the key at passed virtual key code is pressed.

Syntax

RAGE.Input.IsDown(int keyCode);

Required Arguments

  • keyCode: Int keyCode

Example

C# Syntax
C.png

Parameters

  • keyCode: Int keyCode

Example

public bool inputIsDown(int keyCode)
{
    return RAGE.Input.IsDown(keyCode);
}


See also