Objects use this interface to respond to input.
More...
#include <InputListener.h>
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:
-
The documentation for this class was generated from the following file: