fr.umlv.lawrence
Interface InputListener

All Superinterfaces:
EventListener

public interface InputListener
extends EventListener


Method Summary
 void keyTyped(int x, int y, Key keyCode)
          Indicates that a key was pressed
 void mouseClicked(int x, int y, int button)
          Indicates that a cell was clicked
 

Method Detail

mouseClicked

void mouseClicked(int x,
                  int y,
                  int button)
Indicates that a cell was clicked

Parameters:
x - the x coordinate of the cell
y - the y coordinate of the cell
button - the number of the pressed button

keyTyped

void keyTyped(int x,
              int y,
              Key keyCode)
Indicates that a key was pressed

Parameters:
x - the x coordinate of the cell where the cursor was when the key was pressed
y - the y coordinate of the cell where the cursor was when the key was pressed
keyCode - Which key was pressed