Example #1
0
 private void Reset()
 {
     m_KeyData = new KeyInputData()
     {
         Left     = KeyCode.LeftArrow,
         Right    = KeyCode.RightArrow,
         Up       = KeyCode.UpArrow,
         Down     = KeyCode.DownArrow,
         Jump     = KeyCode.Space,
         Dush     = KeyCode.LeftShift,
         Squat    = KeyCode.DownArrow,
         DropGrab = KeyCode.DownArrow,
     };
     m_KeyDataAlt = new KeyInputData()
     {
         Left     = KeyCode.A,
         Right    = KeyCode.D,
         Up       = KeyCode.W,
         Down     = KeyCode.S,
         Jump     = KeyCode.Space,
         Dush     = KeyCode.LeftShift,
         Squat    = KeyCode.S,
         DropGrab = KeyCode.S,
     };
 }
Example #2
0
        public void Process(KeyInput keyInput, bool wasMapped = false)
        {
            var keyInputData = KeyInputData.Create(keyInput, wasMapped);
            var result       = _bindData.MappedBindFunction.Invoke(keyInputData);

            _bindData = result.IsNeedMoreInput
                ? ((MappedBindResult <int> .NeedMoreInput)result).MappedBindData
                : null;
        }
Example #3
0
 public ProcessResult Process(KeyInputData value)
 {
     throw new NotImplementedException();
 }