Controls::isInputDisabled: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Seems to return true if the input is currently disabled. '_GET_LAST_INPUT_METHOD' didn't seem very accurate, but I've left the original description below.<br><br>--<br><br>index usually 2<br><br>returns true if the last input method was made with mouse + keyboard, false if it was made with a gamepad<br><br>0, 1 and 2 used in the scripts. 0 is by far the most common of them.
Seems to return true if the input is currently disabled. '_GET_LAST_INPUT_METHOD' didn't seem very accurate, but I've left the original description below.<br><br>--<br><br>index usually 2<br><br>returns true if the last input method was made with mouse + keyboard, false if it was made with a gamepad<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.isInputDisabled(inputGroup);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.controls.isInputDisabled(inputGroup);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''inputGroup:''' int
*'''inputGroup:''' int
Line 8: Line 8:
==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

Seems to return true if the input is currently disabled. '_GET_LAST_INPUT_METHOD' didn't seem very accurate, but I've left the original description below.

--

index usually 2

returns true if the last input method was made with mouse + keyboard, false if it was made with a gamepad

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

Syntax

mp.game.controls.isInputDisabled(inputGroup);

Required Arguments

  • inputGroup: int

Return value

  • Boolean

Example

// todo

See also

Template:Controls s function c