duncan
Mom and Dad were wrong!
Public Member Functions
client::InputListener Class Reference

#include <inputlistener.h>

Inheritance diagram for client::InputListener:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void on_press (unsigned int key, bool repeat)
virtual void on_release (unsigned int key, bool repeat)

Detailed Description

Interface for handling keyboard input.

Author:
Harry Slatyer

see LICENSE


Member Function Documentation

virtual void client::InputListener::on_press ( unsigned int  key,
bool  repeat 
) [inline, virtual]

Called when a key is pressed.

Parameters:
keykeysym of pressed key
repeatwhether 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.

Parameters:
keykeysym of released key
repeatwhether this release was due to auto-repeat

Reimplemented in client::GameState.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations