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

RB.AnyKeyPressed

Method  -  Static

public static bool AnyKeyPressed(int repeatRate = 0)

Parameters

repeatRate int Any key repeat rate in frames, if > 0 then the any key will re-trigger at this repeat rate

Returns

bool

True if any key pressed

Description

Return true if any key, touch, gamepad or mouse button is down and there are was no key, touch, gamepad or mouse button down in the last call to IRetroBlitGame.Update

Example

void Update() {
    if (RB.AnyKeyPressed()) {
        DrinkPotion();
    }
}

See Also

RB.AnyKeyReleased
RB.AnyKeyDown

See Docs

Features - Keyboard