Guest User

Untitled

a guest
Aug 16th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. void bind(String bindkey,Action action){
  2. String key = bindkey.toUpperCase();
  3. Display.focus.getInputMap(focused).put(KeyStroke.getKeyStroke(key),key);
  4. Display.focus.getActionMap().put(key,action);
  5. }
  6. Action Player1Up = new AbstractAction() {
  7. public void actionPerformed(ActionEvent arg0) {
  8. Up[1]=1;
  9. }
  10. };
Add Comment
Please, Sign In to add comment