コード例 #1
0
ファイル: PlayerMovement.cs プロジェクト: charvat1/UnityGame
 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,
     };
 }
コード例 #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;
        }
コード例 #3
0
ファイル: MockNormalMode.cs プロジェクト: zachS93/VsVim
 public ProcessResult Process(KeyInputData value)
 {
     throw new NotImplementedException();
 }