Show / Hide Table of Contents

Method keys.more.parseTriggerString


Overload

Parses hotkey trigger string or mouse trigger modifiers string. Like keys.more.parseHotkeyString, but supports "any mod" (like "Shift?+K" or "?+K") and noKey.

public static bool parseTriggerString(string s, out KMod mod, out KMod modAny, out KKey key, bool noKey)
Parameters
s  (string)
mod  (KMod)
modAny  (KMod)
key  (KKey)
noKey  (bool)

Modifiers only. If true, s must be "modifiers" or null/"". If false, s must be "key" or "modifiers+key".

Returns
bool