LuaPictureBox: Add GetMouse

A simple function that gets the point the mouse cursor is at relative to the LuaPictureBox's upper left corner
This commit is contained in:
Trivial-Man 2017-06-29 19:52:40 -06:00 committed by GitHub
parent d3834fff49
commit fdc30ccd12
1 changed files with 7 additions and 1 deletions

View File

@ -375,5 +375,11 @@ namespace BizHawk.Client.EmuHawk
boxBackground = Graphics.FromImage(Image);
boxBackground.DrawString(message, font, new SolidBrush(forecolor ?? Color.Black), x, y);
}
public Point GetMouse()
{
var p = PointToClient(Control.MousePosition);
return p;
}
}
}
}