espresso3d.engine.input.base
Interface E3DInputCallback


public interface E3DInputCallback

Author:
espresso3d Any input callback class must implement this to be able to get input callbacks

Method Summary
 void onKeyboardInput(java.util.ArrayList keyCodes)
          When input is captured that has keys/actions bound to a class implementing this, onInput is called.
 void onMouseButtonInput(java.util.ArrayList keyCodes)
          Mouse input is triggered when a mouse button is pressed
 void onMouseMovementInput(int changeInX, int changeInY, int changeInScrollWheel)
          Mouse movement input is trigger when the mouse moves
 

Method Detail

onKeyboardInput

public void onKeyboardInput(java.util.ArrayList keyCodes)
When input is captured that has keys/actions bound to a class implementing this, onInput is called. An arraylist of all keycodes that have been registered to the class and have been pressed since the last time this classes onInput was called are passed in

Parameters:
keyCodes -

onMouseButtonInput

public void onMouseButtonInput(java.util.ArrayList keyCodes)
Mouse input is triggered when a mouse button is pressed

Parameters:
keyCodes - If any mouse button is pressed, it will be in this list

onMouseMovementInput

public void onMouseMovementInput(int changeInX,
                                 int changeInY,
                                 int changeInScrollWheel)
Mouse movement input is trigger when the mouse moves

Parameters:
changeInX - If the mouse has moved in the X direction this will be nonZero indicating the amount it moved
changeInY - If the mouse has moved in the Y direciton this will be nonZero indicating the amount it moved
changeInScrollWheel - If the mouse scroll wheel has moved, this will indicate how far. This will always be 0 if the mouse doesn't have a wheel