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

RB.KeyReleased

Method  -  Static

public static bool KeyReleased(KeyCode keyCode)

Parameters

keyCode KeyCode Key code

Returns

bool

True if key released

Description

Return true if given key specified by keyCode went from a down to up state since last call to IRetroBlitGame.Update.

Example

void Update() {
    if (RB.KeyReleased(UnityEngine.KeyCode.Z)) {
        SelfDestruct();
    }
}

See Also

RB.KeyPressed
RB.KeyDown
RB.InputString

See Docs

Features - Keyboard