예제 #1
0
    public JG_Mouse(Vector2 pos, string spritePath, float rot, Vector2 scale) : base(pos, spritePath, rot, scale)
    {
        left  = new JG_ButtonState();
        right = new JG_ButtonState();
        MouseCursor cursor = MouseCursor.FromTexture2D(sprite, 0, 0);

        Mouse.SetCursor(cursor);
    }
예제 #2
0
 public JG_Mouse()
 {
     left  = new JG_ButtonState();
     right = new JG_ButtonState();
 }