Skip to content
Permalink
8ba4e500aa
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
25 lines (18 sloc) 421 Bytes
package main;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
//whenever a key is pressed this runs
public class KeyboardInput extends KeyAdapter{
Game game;
public KeyboardInput(Game game){
this.game = game;
}
@Override
public void keyPressed(KeyEvent e){
game.keyPressed(e);
}
@Override
public void keyReleased(KeyEvent e){
game.keyReleased(e);
}
}