Controls::getControlActionName: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
(yay)
Line 1: Line 1:
formerly called _GET_CONTROL_ACTION_NAME incorrectly<br><br>p2 appears to always be true.<br>p2 is unused variable in function.<br><br>EG:<br>_GET_CONTROL_ACTION_NAME(2, 201, 1) /*INPUT_FRONTEND_ACCEPT (e.g. Enter button)*/<br>_GET_CONTROL_ACTION_NAME(2, 202, 1) /*INPUT_FRONTEND_CANCEL (e.g. ESC button)*/<br>_GET_CONTROL_ACTION_NAME(2, 51, 1) /*INPUT_CONTEXT (e.g. E button)*/<br><br>gtaforums.com/topic/819070-c-draw-instructional-buttons-scaleform-movie/#entry1068197378<br><br><br>0, 1 and 2 used in the scripts. 0 is by far the most common of them.
formerly called _GET_CONTROL_ACTION_NAME incorrectly<br><br>p2 appears to always be true.<br>p2 is unused variable in function.<br><br>EG:<br>_GET_CONTROL_ACTION_NAME(2, 201, 1) /*INPUT_FRONTEND_ACCEPT (e.g. Enter button)*/<br>_GET_CONTROL_ACTION_NAME(2, 202, 1) /*INPUT_FRONTEND_CANCEL (e.g. ESC button)*/<br>_GET_CONTROL_ACTION_NAME(2, 51, 1) /*INPUT_CONTEXT (e.g. E button)*/<br><br>gtaforums.com/topic/819070-c-draw-instructional-buttons-scaleform-movie/#entry1068197378<br><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.getControlActionName(inputGroup, control, p2);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.controls.getControlActionName(inputGroup, control, p2);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''inputGroup:''' int
*'''inputGroup:''' int
Line 10: Line 10:
==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

formerly called _GET_CONTROL_ACTION_NAME incorrectly

p2 appears to always be true.
p2 is unused variable in function.

EG:
_GET_CONTROL_ACTION_NAME(2, 201, 1) /*INPUT_FRONTEND_ACCEPT (e.g. Enter button)*/
_GET_CONTROL_ACTION_NAME(2, 202, 1) /*INPUT_FRONTEND_CANCEL (e.g. ESC button)*/
_GET_CONTROL_ACTION_NAME(2, 51, 1) /*INPUT_CONTEXT (e.g. E button)*/

gtaforums.com/topic/819070-c-draw-instructional-buttons-scaleform-movie/#entry1068197378


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

Syntax

mp.game.controls.getControlActionName(inputGroup, control, p2);

Required Arguments

  • inputGroup: int
  • control: int
  • p2: Boolean

Return value

  • String

Example

// todo

See also

Template:Controls s function c