Skip to content

Commit

Permalink
send fake lua key release event when going into another interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Sep 21, 2015
1 parent cacef12 commit f230ac8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/game/GameView.cpp
Expand Up @@ -1622,6 +1622,8 @@ void GameView::OnBlur()
isMouseDown = false;
drawMode = DrawPoints;
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)
Expand Down

0 comments on commit f230ac8

Please sign in to comment.