MouseEvent() public static method

IN_MouseEvent
public static MouseEvent ( int mstate ) : void
mstate int
return void
Example #1
0
        void Mouse_ButtonEvent(object sender, OpenTK.Input.MouseButtonEventArgs e)
        {
            _MouseBtnState = 0;

            if (e.Button == MouseButton.Left && e.IsPressed)
            {
                _MouseBtnState |= 1;
            }

            if (e.Button == MouseButton.Right && e.IsPressed)
            {
                _MouseBtnState |= 2;
            }

            if (e.Button == MouseButton.Middle && e.IsPressed)
            {
                _MouseBtnState |= 4;
            }

            Input.MouseEvent(_MouseBtnState);
        }
Example #2
0
 void Mouse_Move(object sender, OpenTK.Input.MouseMoveEventArgs e)
 {
     Input.MouseEvent(_MouseBtnState);
 }