Commit cb027715 authored by Christian Winter's avatar Christian Winter

current states only get input if a view is focused

parent 1d3b9f9b
......@@ -31,7 +31,9 @@ class Input {
break;
}
Logic.currentState.keyDown(e.keyCode);
if (Application.currentView)
Logic.currentState.keyDown(e.keyCode);
if (Application.currentFocus)
Application.currentFocus.keyDown(e.keyCode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment