s&box docs

public static abstract sealed class Sandbox.Input.Keyboard

Keyboard related glyph methods.

Broader workflow and conceptual references connected to this API.

Methods

Showing 4 methods

public static bool Down(string keyName)

Keyboard key is held down

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

Get a glyph texture from a specific key name.

Parameters

  • size: Default: 0
  • outline: Default: False

public static bool Pressed(string keyName)

Keyboard key wasn't pressed but now it is

public static bool Released(string keyName)

Keyboard key was pressed but now it isn't

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Input.Keyboard

On this page