Permalink
Browse files

send fake lua key release event when going into another interface

  • Loading branch information...
jacob1 committed Sep 21, 2015
1 parent cacef12 commit f230ac89454dcdbc043cd8b6b8738eb258b75e78
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/game/GameView.cpp
@@ -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)

0 comments on commit f230ac8

Please sign in to comment.