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

CKeyboard Class Reference

Mouse Device class. More...

#include <Keyboard.h>

Inheritance diagram for CKeyboard:

CInputDevice CInputDeviceState CEntity List of all members.

Public Member Functions

bool IsKeyDown (char cKey)
bool IsKeyUp (char cKey)
UINT GetKeyState (UINT uiKeyIndex)
virtual bool IsOfType (eEntityType eType)

Protected Member Functions

virtual int Create ()
virtual void Destroy ()
virtual UINT Poll ()

Detailed Description

Mouse Device class.

This class provides an easy and clear shell for a keyboard device

Definition at line 13 of file Keyboard.h.


Member Function Documentation

int CKeyboard::Create  )  [protected, virtual]
 

Method details:

Returns:
1 if device has been created succesfully, 0 otherwise

Implements CInputDevice.

Definition at line 15 of file Keyboard.cpp.

Referenced by CInputEngine::Create().

void CKeyboard::Destroy  )  [protected, virtual]
 

Method details: Destroys the device

Implements CInputDevice.

Definition at line 75 of file Keyboard.cpp.

UINT CKeyboard::GetKeyState UINT  uiKeyIndex  )  [virtual]
 

Method details:

Parameters:
cKey - Index of the key to query
Returns:
Key state (KEY_UP or KEY_DOWN)

Reimplemented from CInputDeviceState.

Definition at line 54 of file Keyboard.cpp.

bool CKeyboard::IsKeyDown char  cKey  ) 
 

Method details:

Parameters:
cKey - Index of the key to query
Returns:
True if key is down, false otherwise
Definition at line 65 of file Keyboard.cpp.

bool CKeyboard::IsKeyUp char  cKey  ) 
 

Method details:

Parameters:
uiButtonIndex - Index of the key to query
Returns:
True if key has just been released, false otherwise
Definition at line 70 of file Keyboard.cpp.

bool CKeyboard::IsOfType eEntityType  eType  )  [virtual]
 

Method details: This is an implementation of Custom RTTI

Reimplemented from CInputDevice.

Definition at line 80 of file Keyboard.cpp.

References CEntity::IsOfType().

UINT CKeyboard::Poll  )  [protected, virtual]
 

Method details:

Returns:
Varied return values

Implements CInputDeviceState.

Definition at line 33 of file Keyboard.cpp.

Referenced by CInputEngine::Poll().


The documentation for this class was generated from the following files:
Generated on Sun Jul 17 21:34:30 2005 for OpenGL GUI by doxygen 1.3.8