protected virtual void ReadInput() { DepressedButtons = 0; ScrollDelta = Vector2.zero; if (!nodeState.tracked) { return; } var leftClick = input.GetAxis(nodeState, InputAxis.LeftClick); if (leftClick > .9f) { DepressedButtons |= MouseButton.Left; } var middleClick = input.GetAxis(nodeState, InputAxis.MiddleClick); if (middleClick > .5f) { DepressedButtons |= MouseButton.Middle; } var rightClick = input.GetAxis(nodeState, InputAxis.RightClick); if (rightClick > .5f) { DepressedButtons |= MouseButton.Right; } var joyTypes = input.GetJoypadTypes(nodeState); if ((joyTypes & JoyPadType.Joystick) != 0) { ReadJoystick(); } if ((joyTypes & JoyPadType.TouchPad) != 0) { ReadTouchpad(); } }