send fake lua key release event when going into another interface
This commit is contained in:
parent
cacef125c6
commit
f230ac8945
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user