Logo Search packages:      
Sourcecode: fillets-ng version File versions

InputHandler Class Reference

#include <InputHandler.h>

Inheritance diagram for InputHandler:

InputProvider NoCopy StateInput ConsoleInput GameInput HelpInput OptionsInput DemoInput LevelInput PedoInput WorldInput

List of all members.

Detailed Description

Handle input events. Events:

Pressed keys are stored in m_pressed array, this array is shared and updated by InputAgent.

Definition at line 20 of file InputHandler.h.

Public Member Functions

virtual V2 getMouseLoc () const
virtual bool isLeftPressed () const
virtual bool isMiddlePressed () const
virtual bool isPressed (SDLKey key) const
virtual bool isRightPressed () const
virtual void keyEvent (const KeyStroke &)
virtual void mouseEvent (const MouseStroke &)
void mouseState (const V2 &loc, Uint8 buttons)
void takePressed (Uint8 *pressed)
virtual std::string toString () const

Private Attributes

Uint8 m_buttons
V2 m_mouseLoc
Uint8 * m_pressed

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

Generated by  Doxygen 1.6.0   Back to index