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_LEFT

Variable  -  Const

Type

const int

Description

The Left D-pad button on a gamepad.

This button is also mapped to KeyCode.A for player one, or KeyCode.LeftArrow for player two.

Use RB.InputOverride to override input mapping.

Example

void Update()
{
    if (RB.ButtonPressed(RB.BTN_LEFTRB.PLAYER_ONE)) {
        pos.x--;
    }
}

See Also

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

See Docs

Features - Gamepads