MinecraftForge/MinecraftForge — pull request #260 by Mast3rPlan (2012-11-17 17:14:52+00:00)
Title: Added support for cancelling input polling.

Multiple hooks were added:

Minecraft.java:
* currentScreen.handleInput() won't be called if PollInputEvent is cancelled.
* Mouse.next() won't be called nor processed if PollInputEvent is cancelled.

EntityRenderer.java:
* mouseX (var16) and mouseY (var17) will be set to -1 if PollInputEvent is cancelled.

GuiSlot.java:
* Mouse.next() won't be called nor processed if PollInputEvent is cancelled.