Skip to content

Instantly share code, notes, and snippets.

@WhiteAbeLincoln
Created July 10, 2014 22:42
Show Gist options
  • Save WhiteAbeLincoln/fafa8b13405ca8bcb89d to your computer and use it in GitHub Desktop.
Save WhiteAbeLincoln/fafa8b13405ca8bcb89d to your computer and use it in GitHub Desktop.
Key input handling for minecraft 1.7
public class KeyInputHandler {
@SubscribeEvent
public void onKeyInput(InputEvent.KeyInputEvent event) {
if(KeyBindings.pong.isPressed())
System.out.println("pong");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment