MovingBlocks/Terasology — pull request #971 by mkienenb (2014-02-19 04:54:19+00:00)
Title: Drain input queues when changing state

I can't say for sure that this happens with LWJGL, but with the AWT input systems, it is possible to receive left-over mouse events in-game because of double-clicking on the game to load.

It seems like a good idea in general to drain any pending input events if we are switching game states.

If you think this makes more sense as a inputSystem.drainInputQueues() method, I can do that instead.