@@ -0,0 +1,2051 @@
+package platformer.input;%0A%0Aimport java.awt.event.KeyEvent;%0Aimport java.awt.event.KeyListener;%0Aimport java.awt.event.MouseEvent;%0Aimport java.awt.event.MouseListener;%0Aimport java.awt.event.MouseMotionListener;%0A%0Apublic class InputHandler implements KeyListener,MouseListener,MouseMotionListener%7B%0A%0A%09public boolean mousePressed = false;%0A%09%0A%09public int mouseX = 0;%0A%09public int mouseY = 0;%0A%09%0A%09public boolean keyPressed = false;%0A%09public int keyCode= 0 ;%0A%09%0A%09public boolean%5B%5D keys = new boolean%5B200%5D;%0A%09%0A%09public InputHandler()%7B%0A%09%09for(int i = 0; i %3C200;i++)%7B%0A%09%09%09keys%5Bi%5D = false;%0A%09%09%7D%0A%09%7D%0A%09%0A%09public boolean isKeyDown(int keyCode)%7B%0A%09%09return keys%5BkeyCode%5D;%0A%09%7D%0A%09%0A%09@Override%0A%09public void mouseDragged(MouseEvent paramMouseEvent) %7B%0A%09%09mouseX = paramMouseEvent.getX();%0A%09%09mouseY = paramMouseEvent.getY();%0A%0A%09%7D%0A%0A%09@Override%0A%09public void mouseMoved(MouseEvent paramMouseEvent) %7B%0A%09%09mouseX = paramMouseEvent.getX();%0A%09%09mouseY = paramMouseEvent.getY();%0A%0A%09%7D%0A%0A%09@Override%0A%09public void mouseClicked(MouseEvent paramMouseEvent) %7B%0A%09%09mouseX = paramMouseEvent.getX();%0A%09%09mouseY = paramMouseEvent.getY();%0A%0A%09%7D%0A%0A%09@Override%0A%09public void mousePressed(MouseEvent paramMouseEvent) %7B%0A%09%09mouseX = paramMouseEvent.getX();%0A%09%09mouseY = paramMouseEvent.getY();%0A%0A%09%09mousePressed = true;%0A%09%7D%0A%0A%09@Override%0A%09public void mouseReleased(MouseEvent paramMouseEvent) %7B%0A%09%09mouseX = paramMouseEvent.getX();%0A%09%09mouseY = paramMouseEvent.getY();%0A%0A%09%09mousePressed = false;%0A%09%7D%0A%0A%09@Override%0A%09public void mouseEntered(MouseEvent paramMouseEvent) %7B%0A%09%09mouseX = paramMouseEvent.getX();%0A%09%09mouseY = paramMouseEvent.getY();%0A%0A%09%7D%0A%0A%09@Override%0A%09public void mouseExited(MouseEvent paramMouseEvent) %7B%0A%09%09mouseX = paramMouseEvent.getX();%0A%09%09mouseY = paramMouseEvent.getY();%0A%0A%09%7D%0A%0A%09@Override%0A%09public void keyTyped(KeyEvent paramKeyEvent) %7B%0A%09%09%0A%09%7D%0A%0A%09@Override%0A%09public void keyPressed(KeyEvent paramKeyEvent) %7B%0A%09%09keyPressed = true;%0A%09%09keys%5BparamKeyEvent.getKeyCode()%5D =true;%0A%09%09keyCode = paramKeyEvent.getKeyCode();%0A%09%7D%0A%0A%09@Override%0A%09public void keyReleased(KeyEvent paramKeyEvent) %7B%0A%09%09keys%5BparamKeyEvent.getKeyCode()%5D =false;%0A%0A%09%09keyPressed = false;%0A%09%7D%0A%0A%7D%0A

Create InputHandler.java