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_UP

Variable  -  Const

Type

const int

Description

The Up D-pad button on a gamepad.

This button is also mapped to KeyCode.W for player one, or KeyCode.UpArrow for player two.

Use RB.InputOverride to override input mapping.

Example

void Update()
{
    if (RB.ButtonPressed(RB.BTN_UPRB.PLAYER_ONE)) {
        pos.y--;
    }
}

See Also

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

See Docs

Features - Gamepads