Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void bind(String bindkey,Action action){
- String key = bindkey.toUpperCase();
- Display.focus.getInputMap(focused).put(KeyStroke.getKeyStroke(key),key);
- Display.focus.getActionMap().put(key,action);
- }
- Action Player1Up = new AbstractAction() {
- public void actionPerformed(ActionEvent arg0) {
- Up[1]=1;
- }
- };
Add Comment
Please, Sign In to add comment