Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.game.src.main;
- import java.awt.event.KeyAdapter;
- import java.awt.event.KeyEvent;
- public class KeyInput extends KeyAdapter{
- Game game;
- public KeyInput(Game game){
- this.game = game;
- }
- public void keyPressed(KeyEvent e){
- game.keyPressed(e);
- }
- public void keyReleased(KeyEvent e){
- game.keyReleased(e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement