duncan
Mom and Dad were wrong!
|
#include <inputlistener.h>
Public Member Functions | |
virtual void | on_press (unsigned int key, bool repeat) |
virtual void | on_release (unsigned int key, bool repeat) |
Interface for handling keyboard input.
see LICENSE
virtual void client::InputListener::on_press | ( | unsigned int | key, |
bool | repeat | ||
) | [inline, virtual] |
Called when a key is pressed.
key | keysym of pressed key |
repeat | whether this press was due to auto-repeat |
Reimplemented in client::GameState.
virtual void client::InputListener::on_release | ( | unsigned int | key, |
bool | repeat | ||
) | [inline, virtual] |
Called when a key is released.
key | keysym of released key |
repeat | whether this release was due to auto-repeat |
Reimplemented in client::GameState.