Controls::isControlPressed: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
index always is 2 for xbox 360 controller and razerblade<br><br>0, 1 and 2 used in the scripts. 0 is by far the most common of them.
index always is 2 for xbox 360 controller and razerblade<br><br>0, 1 and 2 used in the scripts. 0 is by far the most common of them.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">controls.isControlPressed(inputGroup, control);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.controls.isControlPressed(inputGroup, control);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''inputGroup:''' int
*'''inputGroup:''' int
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Controls_function_c}}
{{Controls_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:05, 6 May 2017

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

  • inputGroup: int
  • control: int

Return value

  • Boolean

Example

// todo

See also

Template:Controls s function c