API Referenceglobal
Keyboardclass
Keyboard related glyph methods.
object→Keyboard
Methods4
Showing 4 methods
public static bool Down(string keyName)
Keyboard key is held down
| Parameter | Type | Description |
|---|---|---|
| keyName | string | — |
Returns:
bool—public static Sandbox.Texture GetGlyph(string key, Sandbox.InputGlyphSize size = 0, bool outline = False)
Get a glyph texture from a specific key name.
| Parameter | Type | Description |
|---|---|---|
| key | string | — |
| size = 0 | InputGlyphSize | — |
| outline = False | bool | — |
public static bool Pressed(string keyName)
Keyboard key wasn't pressed but now it is
| Parameter | Type | Description |
|---|---|---|
| keyName | string | — |
Returns:
bool—public static bool Released(string keyName)
Keyboard key was pressed but now it isn't
| Parameter | Type | Description |
|---|---|---|
| keyName | string | — |
Returns:
bool—No results match this filter.