private void HandleMouseButtonDown(MouseButtonDownEventArgs args) { if (args.Button == 1) { if (_mouseTouch == null) { _mouseTouch = new TouchState { ID = MouseTouchID, ScreenPosition = Input.MousePosition, Pressure = 1.0f }; StartTouch(_mouseTouch); } } if (args.Button == 4) { _rigthClick = new TouchState { ID = MouseTouchID, ScreenPosition = Input.MousePosition, Pressure = 1.0f }; _rightClickStart = _environment.Raycast(Input.MousePosition); _potentialRightClick = true; } }
public SimpleInteractionEventArgs(InputRaycastResult contact) { _contact = contact; }
private InputRaycastResult Move(InputRaycastResult contact, IntVector2 screenPosition) { return(_environment.RaycastToPlane(screenPosition, new Plane(contact.Normal, contact.ContactPoint), contact.UserContext)); }