Keyboardclass

Keyboard related glyph methods.

object→Keyboard
Namespace
global
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.Input.Keyboard

Methods4

Showing 4 methods

public static bool Down(string keyName)PUBLICSTATIC

Keyboard key is held down

ParameterTypeDescription
keyNamestring—
Returns:bool—

public static Sandbox.Texture GetGlyph(string key, Sandbox.InputGlyphSize size = 0, bool outline = False)PUBLICSTATIC

Get a glyph texture from a specific key name.

ParameterTypeDescription
keystring—
size = 0InputGlyphSize—
outline = Falsebool—
Returns:Texture—

public static bool Pressed(string keyName)PUBLICSTATIC

Keyboard key wasn't pressed but now it is

ParameterTypeDescription
keyNamestring—
Returns:bool—

public static bool Released(string keyName)PUBLICSTATIC

Keyboard key was pressed but now it isn't

ParameterTypeDescription
keyNamestring—
Returns:bool—

On this page