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_Y

Variable  -  Const

Type

const int

Description

The Y button on a gamepad.

This button is also mapped to KeyCode.H for player one, or KeyCode.LeftBracket, KeyCode.Keypad5 for player two.

Use RB.InputOverride to override input mapping.

Example

void Update()
{
    if (RB.ButtonPressed(RB.BTN_YRB.PLAYER_ONE)) {
        Dash();
    }
}

See Also

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

See Docs

Features - Gamepads