Main Page | Class Hierarchy | Compound List | File List | Compound Members

DKeyboard Class Reference

#include <DKeyboard.h>

Inheritance diagram for DKeyboard:

DObject List of all members.

Detailed Description

DKeyboard - a handler for keyboard state.

This Object handles key inputs and stores the current state of the keyboard (i.e. which keys and special keys are pressed). The keys can be determined by checking the key- and the specialKey- arrays.


Public Member Functions

 DKeyboard (void)
 Constructor; Initializes a new keyboard handler.

void KeyUp (unsigned char key)
 Registers a released key.

void KeyDown (unsigned char key)
 Registers a pressed key.

void KeySpecialUp (int key)
 Registers a released special key.

void KeySpecialDown (int key)
 Registers a pressed special key.


Public Attributes

bool key [256]
 This array is used for saving state of normal keys.

bool specialKey [256]
 This array is used for saving state of special keys.


Constructor & Destructor Documentation

DKeyboard::DKeyboard void   ) 
 

Constructor; Initializes a new keyboard handler.

Constructor. Constructs a new Keyboard Object.


Member Function Documentation

void DKeyboard::KeyDown unsigned char  k  ) 
 

Registers a pressed key.

Marks a pressed key as pressed in the array key.

void DKeyboard::KeySpecialDown int  k  ) 
 

Registers a pressed special key.

Marks a pressed special key as pressed in the array specialKey.

void DKeyboard::KeySpecialUp int  k  ) 
 

Registers a released special key.

Marks a released special key as released in the array specialKey.

void DKeyboard::KeyUp unsigned char  k  ) 
 

Registers a released key.

Marks a released key as released in the array key.


The documentation for this class was generated from the following files:
Generated on Thu Jun 19 21:55:40 2003 for Debris by doxygen 1.3.2