Public Member Functions | Protected Attributes

KeyboardDevice Class Reference

Keyboard Device. More...

#include <Input.h>

Inheritance diagram for KeyboardDevice:
Device

List of all members.

Public Member Functions

 KeyboardDevice ()
virtual ~KeyboardDevice ()
virtual DeviceasDevice (void)
virtual bool isKeyboard (void)
virtual KeyboardDeviceasKeyboard (void)
virtual void update (bool reset=true)=0
bool operator== (const KeyboardDevice &other)
bool operator!= (const KeyboardDevice &other)
bool isDown (KEYBTN key)
bool isUp (KEYBTN key)
bool hasChanged (void)
 KeyboardDevice ()
virtual ~KeyboardDevice ()
void setKeysDown (::KEYBTN key, bool b)
void setKeysUp (::KEYBTN key, bool b)
void setChanged (bool b)
bool getKeysDown (::KEYBTN key)
bool getKeysUp (::KEYBTN key)
bool getChanged (void)
void reset (void)
void copy (void)
void update (bool reset)
::pKeyboardDevice asKeyboardDevice ()

Protected Attributes

bool keysDown [256]
bool keysUp [256]
bool change

Detailed Description

Keyboard Device.

Keyboard device class.

Definition at line 82 of file Input.h.


Constructor & Destructor Documentation

NAMESPACE_START KeyboardDevice::KeyboardDevice (  )  [inline]

Definition at line 86 of file Input.h.

KeyboardDevice::~KeyboardDevice (  )  [inline, virtual]

Definition at line 91 of file Input.h.

KeyboardDevice::KeyboardDevice (  ) 
virtual KeyboardDevice::~KeyboardDevice (  )  [virtual]

Member Function Documentation

virtual Device* KeyboardDevice::asDevice ( void   )  [inline, virtual]

Reimplemented from Device.

Definition at line 92 of file Input.h.

virtual KeyboardDevice* KeyboardDevice::asKeyboard ( void   )  [inline, virtual]

Reimplemented from Device.

Definition at line 94 of file Input.h.

::pKeyboardDevice KeyboardDevice::asKeyboardDevice (  )  [inline]

Definition at line 41 of file KeyboardDevice.h.

void KeyboardDevice::copy ( void   )  [inline]

Definition at line 33 of file KeyboardDevice.h.

bool KeyboardDevice::getChanged ( void   )  [inline]

Definition at line 25 of file KeyboardDevice.h.

bool KeyboardDevice::getKeysDown ( ::KEYBTN  key  )  [inline]

Definition at line 23 of file KeyboardDevice.h.

bool KeyboardDevice::getKeysUp ( ::KEYBTN  key  )  [inline]

Definition at line 24 of file KeyboardDevice.h.

bool KeyboardDevice::hasChanged ( void   )  [inline]

Definition at line 107 of file Input.h.

bool KeyboardDevice::isDown ( KEYBTN  key  )  [inline]

Definition at line 105 of file Input.h.

virtual bool KeyboardDevice::isKeyboard ( void   )  [inline, virtual]

Reimplemented from Device.

Definition at line 93 of file Input.h.

bool KeyboardDevice::isUp ( KEYBTN  key  )  [inline]

Definition at line 106 of file Input.h.

bool KeyboardDevice::operator!= ( const KeyboardDevice other  )  [inline]

Definition at line 101 of file Input.h.

bool KeyboardDevice::operator== ( const KeyboardDevice other  )  [inline]

Definition at line 96 of file Input.h.

void KeyboardDevice::reset ( void   )  [inline]

Definition at line 27 of file KeyboardDevice.h.

void KeyboardDevice::setChanged ( bool  b  )  [inline]

Definition at line 21 of file KeyboardDevice.h.

void KeyboardDevice::setKeysDown ( ::KEYBTN  key,
bool  b 
) [inline]

Definition at line 19 of file KeyboardDevice.h.

void KeyboardDevice::setKeysUp ( ::KEYBTN  key,
bool  b 
) [inline]

Definition at line 20 of file KeyboardDevice.h.

void KeyboardDevice::update ( bool  reset = true  )  [pure virtual]

Definition at line 16 of file KeboardDevice.cpp.

void KeyboardDevice::update ( bool  reset  ) 

Member Data Documentation

bool KeyboardDevice::change [protected]

Definition at line 112 of file Input.h.

bool KeyboardDevice::keysDown[256] [protected]

Definition at line 110 of file Input.h.

bool KeyboardDevice::keysUp[256] [protected]

Definition at line 111 of file Input.h.


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