Advertisement
pseudocreator

jgd KeyInput.java

May 18th, 2014
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. package com.game.src.main;
  2.  
  3. import java.awt.event.KeyAdapter;
  4. import java.awt.event.KeyEvent;
  5.  
  6. public class KeyInput extends KeyAdapter{
  7.    
  8.     Game game;
  9.    
  10.     public KeyInput(Game game){
  11.         this.game = game;
  12.         }  
  13.    
  14.     public void keyPressed(KeyEvent e){
  15.         game.keyPressed(e);
  16.     }
  17.    
  18.     public void keyReleased(KeyEvent e){
  19.         game.keyReleased(e);
  20.     }
  21.    
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement