fr.umlv.platform
Interface KeyHandler


public interface KeyHandler

Provides a Specific KeyHandler limited to left, right, down, s and a keys.


Nested Class Summary
Modifier and Type Interface and Description
static class KeyHandler.Key
           
 
Method Summary
Modifier and Type Method and Description
 void keyPressed(KeyHandler.Key key, long when)
          Called when the user press a key
 void keyReleased(KeyHandler.Key key, long when)
          Called when the user release a key
 

Method Detail

keyPressed

void keyPressed(KeyHandler.Key key,
                long when)
Called when the user press a key

Parameters:
key - key which is pressed
when - timestamp of the event sent

keyReleased

void keyReleased(KeyHandler.Key key,
                 long when)
Called when the user release a key

Parameters:
key - key which is released
when - timestamp of the event sent