SlashCo Wiki

SlashCo.GetKeyButtonName

 string SlashCo.GetKeyButtonName( string name )

Description

Gets the currently bound button for the bind and translates it using input.GetKeyName and makes the result uppercase.
Useful for UI when wanting to display the key for an action.

Arguments

1string name

Bind

Returns

1string buttonName

The translated button name or UNKNOWN on failure