SlashCo Wiki

SlashCo.GetDefaultKey

 BUTTON_CODE SlashCo.GetDefaultKey( string name )

Description

Returns the default BUTTON_CODE for the given keyboard bind, as defined in SlashCo.KeyboardBinds, ignoring any bindings the player has changed.

Arguments

1string name

Name of the bind, e.g. "PING" (a key in SlashCo.KeyboardBinds).

Returns

1BUTTON_CODE button

The default button for the bind, or nil if the bind name doesn't exist.