AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

RB.BTN_A

Variable  -  Const

Type

const int

Description

The A button on a gamepad.

This button is also mapped to KeyCode.B, KeyCode.Space for player one, or KeyCode.Semicolon, KeyCode.Keypad1, KeyCode.RightControl for player two.

Use RB.InputOverride to override input mapping.

Example

void Update()
{
    if (RB.ButtonPressed(RB.BTN_ARB.PLAYER_ONE)) {
        Jump();
    }
}

See Also

RB.ButtonDown
RB.ButtonPressed
RB.ButtonReleased
RB.InputOverride

See Docs

Features - Gamepads