private void ButtonDownEvent( object sender, MouseEventArgs e ) { if ( e.Button == MouseButtons.Left ) MouseButton |= MouseButton.Left; if ( e.Button == MouseButtons.Right ) MouseButton |= MouseButton.Right; if ( e.Button == MouseButtons.Middle ) MouseButton |= MouseButton.Middle; Position = new Daramkun.Liqueur.Mathematics.Vector2 ( e.X, e.Y ); }
private void MoveEvent( object sender, MouseEventArgs e ) { Position = new Daramkun.Liqueur.Mathematics.Vector2 ( e.X, e.Y ); }
private void ButtonUpEvent( object sender, OpenTK.Input.MouseButtonEventArgs e ) { if ( e.Button == OpenTK.Input.MouseButton.Left ) MouseButton &= MouseButton.Left; if ( e.Button == OpenTK.Input.MouseButton.Right ) MouseButton &= MouseButton.Right; if ( e.Button == OpenTK.Input.MouseButton.Middle ) MouseButton &= MouseButton.Middle; Position = new Daramkun.Liqueur.Mathematics.Vector2 ( e.X, e.Y ); }
private void WheelEvent( object sender, MouseEventArgs e ) { Wheel = e.Delta / 120.0f; Position = new Daramkun.Liqueur.Mathematics.Vector2 ( e.X, e.Y ); }
private void WheelEvent( object sender, OpenTK.Input.MouseWheelEventArgs e ) { Wheel = e.DeltaPrecise; Position = new Daramkun.Liqueur.Mathematics.Vector2 ( e.X, e.Y ); }