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, }; }
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; }
public ProcessResult Process(KeyInputData value) { throw new NotImplementedException(); }