View Javadoc
1   package org.newdawn.slick;
2   
3   /**
4    * Describes classes capable of responding to key presses.
5    * 
6    * @author kevin
7    */
8   public interface KeyListener extends ControlledInputReceiver {
9       /**
10       * Notification that a key was pressed.
11       *
12       * @param key The key code that was pressed (@see org.newdawn.slick.Input)
13       * @param c The character of the key that was pressed
14       */
15      public abstract void keyPressed(int key, char c);
16  
17      /**
18       * Notification that a key was released.
19       *
20       * @param key The key code that was released (@see org.newdawn.slick.Input)
21       * @param c The character of the key that was released
22       */
23      public abstract void keyReleased(int key, char c);
24  
25  }