KeyboardGetKeyName(KeyboardKeyCode, ModifierKeyFlags) Method |
Creates a string containing all display names for a key and modifier key combination.
This may return words and/or symbols for some keys. Example: "Keypad 0", ";", "Back Quote".
Modifier keys will precede the primary key.
Each key will be separated by the + character.
If you need RTL support, you must build the string yourself using
GetModifierKeyName(ModifierKey) and
GetKeyName(KeyboardKeyCode).
The returned value will be localized if localization is in use.
Namespace: RewiredAssembly: Rewired_Core (in Rewired_Core.dll) Version: 1.0.0+fd80194fe28f6b408ce098e98c53850d307c3a32
Syntaxpublic static string GetKeyName(
KeyboardKeyCode key,
ModifierKeyFlags flags
)
Parameters
- key KeyboardKeyCode
- The key code of the key.
- flags ModifierKeyFlags
- The modifier key flags.
Return Value
StringA string containing all display names for a key and modifier key combination. The returned value will be localized if localization is in use.
See Also