Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

KeyControl Class Reference


Detailed Description

Keyboard controls.

Definition at line 9 of file KeyControl.h.

Public Member Functions

 KeyControl ()
 Default control are arrows.
void setUp (SDLKey key)
void setDown (SDLKey key)
void setLeft (SDLKey key)
void setRight (SDLKey key)
SDLKey getUp () const
SDLKey getDown () const
SDLKey getLeft () const
SDLKey getRight () const


Constructor & Destructor Documentation

KeyControl::KeyControl  ) 
 

Default control are arrows.

Definition at line 16 of file KeyControl.cpp.

00017 {
00018     m_up = SDLK_UP;
00019     m_down = SDLK_DOWN;
00020     m_left = SDLK_LEFT;
00021     m_right = SDLK_RIGHT;
00022 }


Member Function Documentation

SDLKey KeyControl::getDown  )  const [inline]
 

Definition at line 23 of file KeyControl.h.

00023 { return m_down; }

SDLKey KeyControl::getLeft  )  const [inline]
 

Definition at line 24 of file KeyControl.h.

00024 { return m_left; }

SDLKey KeyControl::getRight  )  const [inline]
 

Definition at line 25 of file KeyControl.h.

00025 { return m_right; }

SDLKey KeyControl::getUp  )  const [inline]
 

Definition at line 22 of file KeyControl.h.

00022 { return m_up; }

void KeyControl::setDown SDLKey  key  )  [inline]
 

Definition at line 18 of file KeyControl.h.

00018 { m_down = key; }

void KeyControl::setLeft SDLKey  key  )  [inline]
 

Definition at line 19 of file KeyControl.h.

00019 { m_left = key; }

void KeyControl::setRight SDLKey  key  )  [inline]
 

Definition at line 20 of file KeyControl.h.

00020 { m_right = key; }

void KeyControl::setUp SDLKey  key  )  [inline]
 

Definition at line 17 of file KeyControl.h.

00017 { m_up = key; }


The documentation for this class was generated from the following files:
Generated on Wed Jun 1 09:55:30 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2