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:
parent
d3834fff49
commit
fdc30ccd12
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue