Skip to content

lightgun-poc / lib/buttons / normalizeKey

Function: normalizeKey()

normalizeKey(raw): string | null

Defined in: public/math.js:420

Resolves one user-typed key name to its canonical (libnut) spelling, or null for anything unknown. Shared with the pause hotkey (lib/hotkey) so combos everywhere use the same vocabulary.

Parameters

raw

string

Returns

string | null

Released under the MIT License.