Table of Contents

Class GlKeyNames

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public static class GlKeyNames
Inheritance
GlKeyNames
Inherited Members

Methods

GetKeyName(GlKeys)

Gets the string the key would produce upon pressing it without considering any modifiers (but single keys get converted to uppercase). So GlKeys.W on QWERTY Keyboard layout returns W, GlKeys.Space returns Space etc.

public static string GetKeyName(GlKeys key)

Parameters

key GlKeys

Returns

string

GetPrintableChar(int)

Returns the printable character for a key. Does return null on none printable keys like Enter

public static string GetPrintableChar(int key)

Parameters

key int

Returns

string

ToString(GlKeys)

Converts the given key to a string.

public static string ToString(GlKeys key)

Parameters

key GlKeys

the key being passed in.

Returns

string

the string name of the key.