Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

gcn::KeyInput Class Reference

#include <keyinput.hpp>

List of all members.


Detailed Description

Internal class representing keyboard input.

Generally you won't have to bother using this class.

Definition at line 67 of file keyinput.hpp.

Public Types

enum  { EMPTY = 0, PRESS, RELEASE }
 Enum with key input values.

Public Member Functions

 KeyInput ()
 Constructor.
 KeyInput (const Key &key, int type)
 Constructor.
void setType (int type)
 Sets the input type.
int getType () const
 Gets the input type.
void setKey (const Key &key)
 Sets the key the input concerns.
const KeygetKey () const
 Gets the key the input concerns.

Protected Attributes

Key mKey
int mType
int mButton


Constructor & Destructor Documentation

gcn::KeyInput::KeyInput const Key key,
int  type
 

Constructor.

Parameters:
key the Key the input concerns.
type the type of input.

Definition at line 63 of file keyinput.cpp.


Member Function Documentation

const Key & gcn::KeyInput::getKey  )  const
 

Gets the key the input concerns.

Returns:
the Key the input concerns.

Definition at line 84 of file keyinput.cpp.

Referenced by gcn::Gui::logic().

int gcn::KeyInput::getType  )  const
 

Gets the input type.

Returns:
the input type.

Definition at line 74 of file keyinput.cpp.

Referenced by gcn::Gui::logic().

void gcn::KeyInput::setKey const Key key  ) 
 

Sets the key the input concerns.

Parameters:
key the Key the input concerns.

Definition at line 79 of file keyinput.cpp.

Referenced by gcn::SDLInput::pushInput().

void gcn::KeyInput::setType int  type  ) 
 

Sets the input type.

Parameters:
type the type of input.

Definition at line 69 of file keyinput.cpp.

Referenced by gcn::SDLInput::pushInput().


The documentation for this class was generated from the following files:
Generated on Tue May 17 21:23:26 2005 for Guichan by  doxygen 1.4.1