예제 #1
0
        public static MouseEvent GetMouse()
        {
            WrapMEvent wme;

            CursesMethods.getmouse(out wme);
            return(new MouseEvent(wme.id, wme.x, wme.y, wme.z, (MouseState)wme.bstate));
        }
예제 #2
0
        public static void GetMouse(MouseEvent mevent)
        {
            WrapMEvent wme;

            CursesMethods.getmouse(out wme);
            mevent.Id    = wme.id;
            mevent.X     = wme.x;
            mevent.Y     = wme.y;
            mevent.Z     = wme.z;
            mevent.State = (MouseState)wme.bstate;
        }