ForbidKey

void ForbidKey(KeyCode key)
void ForbidKey(string keyString)

Parameters

key: The KeyCode of the key to forbid.
keyString: A string representing the KeyCode of the key to forbid. See Valid Inputs for valid strings.

Description

Forbids the key from being bound (or re-bound) by the player using cInput's UI.

Example

// forbid the player from binding the number 1 using the UI cInput.ForbidKey(KeyCode.Alpha1); // forbid the player frmo binding "tab" and "space" using the UI cInput.ForbidKey(Keys.Tab); cInput.ForbidKey("Space");

results matching ""

    No results matching ""