Beispiel #1
0
 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 );
 }
Beispiel #2
0
 private void MoveEvent( object sender, MouseEventArgs e )
 {
     Position = new Daramkun.Liqueur.Mathematics.Vector2 ( e.X, e.Y );
 }
Beispiel #3
0
 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 );
 }
Beispiel #4
0
 private void WheelEvent( object sender, MouseEventArgs e )
 {
     Wheel = e.Delta / 120.0f;
     Position = new Daramkun.Liqueur.Mathematics.Vector2 ( e.X, e.Y );
 }
Beispiel #5
0
 private void WheelEvent( object sender, OpenTK.Input.MouseWheelEventArgs e )
 {
     Wheel = e.DeltaPrecise;
     Position = new Daramkun.Liqueur.Mathematics.Vector2 ( e.X, e.Y );
 }