1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Added an origX/origY to MouseClick

This commit is contained in:
Brian Fiete 2020-03-21 07:09:21 -07:00
parent 5f949c177d
commit a51fa2b657
14 changed files with 76 additions and 34 deletions

View file

@ -195,9 +195,9 @@ namespace IDE.ui
return false;
}
public override void MouseClicked(float x, float y, int32 btn)
public override void MouseClicked(float x, float y, float origX, float origY, int32 btn)
{
base.MouseClicked(x, y, btn);
base.MouseClicked(x, y, origX, origY, btn);
if (btn == 1)
{
@ -241,7 +241,7 @@ namespace IDE.ui
if (keyCode == .Apps)
{
GetTextCoordAtCursor(var x, var y);
MouseClicked(x, y, 1);
MouseClicked(x, y, x, y, 1);
}
}
}