Controls::isControlPressed: Difference between revisions

From RAGE Multiplayer Wiki
Line 3: Line 3:
<syntaxhighlight lang="javascript">mp.game.controls.isControlPressed(inputGroup, control);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.controls.isControlPressed(inputGroup, control);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''inputGroup:''' int
*'''inputGroup:''' {{RageType|Int}} ([[InputGroup|Input Groups]])
*'''control:''' int
*'''control:''' int



Revision as of 17:02, 6 July 2020

index always is 2 for xbox 360 controller and razerblade

0, 1 and 2 used in the scripts. 0 is by far the most common of them.

Syntax

mp.game.controls.isControlPressed(inputGroup, control);

Required Arguments

Return value

  • Boolean

Example

// todo

See also

Template:Controls s function c