MouseEvent() 공개 정적인 메소드

IN_MouseEvent
public static MouseEvent ( int mstate ) : void
mstate int
리턴 void
예제 #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);
        }
예제 #2
0
 void Mouse_Move(object sender, OpenTK.Input.MouseMoveEventArgs e)
 {
     Input.MouseEvent(_MouseBtnState);
 }