RemoveModifier

void RemoveModifier(KeyCode modifierKey)
void RemoveModifier(string modifier)

Parameters

modifierKey: The KeyCode of the key to stop using as a modifier.
modifier: The string name of the key to stop using as a modifier.

Description

Removes modifier or modifierKey from being used as a modifier.

Note that a modifier key cannot be used as a standalone input key. See Using Modifier Keys for more details. This function allows the key to be used again for normal inputs.

Example

// allows LeftShift to be used as a normal input key and prevents it from being used as a modifier key cInput.RemoveModifier(KeyCode.LeftShift);

results matching ""

    No results matching ""