Ejemplo n.º 1
0
 private void BindKey(KeyCode keyCode, EInputCommand bindCmd)
 {
     if (!keyBuffers.ContainsKey(keyCode))
     {
         keyBuffers.Add(keyCode, new KeyBuffer(keyCode, bindCmd));
     }
 }
Ejemplo n.º 2
0
 public KeyBuffer(KeyCode keyCode, EInputCommand inputCmd)
 {
     KeyCodeValue            = keyCode;
     CmdMessage              = new InputCommandMessage();
     CmdMessage.InputCommand = inputCmd;
     CmdMessage.InputState   = EInputState.Release;
 }
Ejemplo n.º 3
0
 public InputCommandState(EInputCommand inCmd)
 {
     InputCommand = inCmd;
     CurrentState = EInputState.Release;
     HoldTime     = 0;
 }