예제 #1
0
 public KeyCode GetBinding(VirtualInputCommand command)
 {
     return(commandToKeycode[(int)command]);
 }
예제 #2
0
 /// <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)));
 }
예제 #3
0
 public void SetBinding(VirtualInputCommand command, KeyCode code)
 {
     commandToKeycode[(int)command] = code;
 }