InputListener Class Reference
[Input and Interaction]

Objects use this interface to respond to input. More...

#include <InputListener.h>

Inheritance diagram for InputListener:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void mouseDown (int button, int x, int y)
virtual void mouseUp (int button, int x, int y)
virtual void mouseClicked (int button, int x, int y)
virtual void mouseMoved (int button, int x, int y)
virtual void mouseDragged (int button, int x, int y)
virtual void keyDown (int key, int x, int y)
virtual void keyUp (int key, int x, int y)
virtual void resize (int x, int y)


Detailed Description

Objects use this interface to respond to input.

This interface provides methods for receiving input from the InputSystem.


Member Function Documentation

virtual void InputListener::mouseDown ( int  button,
int  x,
int  y 
) [inline, virtual]

Called when a mouse button is pressed.

See also:
InputSystem::Mouse
Parameters:
button can be one of three values
x position of cursor (screen coordinates)
y position of cursor (screen coordinates)

virtual void InputListener::mouseUp ( int  button,
int  x,
int  y 
) [inline, virtual]

Called when a mouse button is released.

See also:
InputSystem::Mouse
Parameters:
button can be one of three values
x position of cursor (screen coordinates)
y position of cursor (screen coordinates)

virtual void InputListener::mouseClicked ( int  button,
int  x,
int  y 
) [inline, virtual]

Called when a mouse button is pressed and released.

See also:
InputSystem::Mouse
Parameters:
button can be one of three values
x position of cursor (screen coordinates)
y position of cursor (screen coordinates)

virtual void InputListener::mouseMoved ( int  button,
int  x,
int  y 
) [inline, virtual]

Called when the mouse is moved with no button pressed.

See also:
InputSystem::Mouse
Parameters:
button will be InputSystem::BUTTON_NONE
x position of cursor (screen coordinates)
y position of cursor (screen coordinates)

virtual void InputListener::mouseDragged ( int  button,
int  x,
int  y 
) [inline, virtual]

Called when the mouse is moved with a button pressed.

See also:
InputSystem::Mouse
Parameters:
button can be one of three values
x position of cursor (screen coordinates)
y position of cursor (screen coordinates)

virtual void InputListener::keyDown ( int  key,
int  x,
int  y 
) [inline, virtual]

Called when a key is pressed.

See also:
InputSystem::Keys
Parameters:
key ascii character representing the key pressed, other possible values specified in InputSystem::Keys.
x position of cursor (screen coordinates)
y position of cursor (screen coordinates)

virtual void InputListener::keyUp ( int  key,
int  x,
int  y 
) [inline, virtual]

Called when a key is released.

See also:
InputSystem::Keys
Parameters:
key ascii character representing the key pressed, other possible values specified in InputSystem::Keys.
x position of cursor (screen coordinates)
y position of cursor (screen coordinates)

virtual void InputListener::resize ( int  x,
int  y 
) [inline, virtual]

Called when the window is resized.

Parameters:
x new width
y new height


The documentation for this class was generated from the following file:

Generated on Fri Feb 22 15:56:20 2008 for Scene2D by  doxygen 1.5.5