public static int GetControlKeyIndex(CONTROL_KEY key) { if (key != CONTROL_KEY.INVALID && key != CONTROL_KEY.COUNT) { return((int)key); } return(-1); }
public static int GetControlKeyIndex(KeyCode key) { CONTROL_KEY controlKey = GetControlKey(key); if (controlKey != CONTROL_KEY.INVALID) { return(GetControlKeyIndex(controlKey)); } return(-1); }