Controls::isControlPressed

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

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

if(mp.game.controls.isControlPressed(27, 71)) {
  // Vehicle Control: Pressed W
}

See also

Template:Controls s function c