mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 05:30:23 +02:00
send fake lua key release event when going into another interface
This commit is contained in:
@@ -1622,6 +1622,8 @@ void GameView::OnBlur()
|
|||||||
isMouseDown = false;
|
isMouseDown = false;
|
||||||
drawMode = DrawPoints;
|
drawMode = DrawPoints;
|
||||||
c->MouseUp(0, 0, 0, 1); // tell lua that mouse is up (even if it really isn't)
|
c->MouseUp(0, 0, 0, 1); // tell lua that mouse is up (even if it really isn't)
|
||||||
|
if (GetModifiers())
|
||||||
|
c->KeyRelease(0, 0, false, false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameView::OnTick(float dt)
|
void GameView::OnTick(float dt)
|
||||||
|
Reference in New Issue
Block a user