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_LS

Variable  -  Const

Type

const int

Description

The Left Shoulder button on a gamepad.

This button is also mapped to KeyCode.T for player one, or KeyCode.Alpha0, KeyCode.Keypad7 for player two.

Use RB.InputOverride to override input mapping.

Example

void Update()
{
    if (RB.ButtonPressed(RB.BTN_LSRB.PLAYER_ONE)) {
        PreviousItem();
    }
}

See Also

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

See Docs

Features - Gamepads