Controls::getControlActionName
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
- mp.game.controls.disableAllControlActions
- mp.game.controls.disableControlAction
- mp.game.controls.enableAllControlActions
- mp.game.controls.enableControlAction
- mp.game.controls.getControlActionName
- mp.game.controls.getControlValue
- mp.game.controls.getControlNormal
- mp.game.controls.getDisabledControlNormal
- mp.game.controls.isControlEnabled
- mp.game.controls.isControlJustReleased
- mp.game.controls.isControlJustPressed
- mp.game.controls.isControlPressed
- mp.game.controls.isControlReleased
- mp.game.controls.isDisabledControlJustReleased
- mp.game.controls.isDisabledControlJustPressed
- mp.game.controls.isDisabledControlPressed
- mp.game.controls.isInputDisabled
- mp.game.controls.isInputJustDisabled
- mp.game.controls.setControlNormal
- mp.game.controls.setInputExclusive
- mp.game.controls.setPadShake
- mp.game.controls.setPlayerpadShakesWhenControllerDisabled
- mp.game.controls.stopPadShake
- mp.game.controls.useDefaultVehicleEntering
- mp.game.controls.setDisableControlActionBatch
- mp.game.controls.applyDisableControlActionBatch