public KeyCode GetBinding(VirtualInputCommand command) { return(commandToKeycode[(int)command]); }
/// <summary> /// Note: this is only valid during Update. Buttons will be missed in fixed update /// </summary> public bool IsInputUp(VirtualInputCommand command) { return(Input.GetKeyUp(GetBinding(command))); }
public void SetBinding(VirtualInputCommand command, KeyCode code) { commandToKeycode[(int)command] = code; }