Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

Keyboard Class Reference

Reads from the keyboard using DirectInput. More...

#include <Keyboard.h>

List of all members.

Public Methods

 Keyboard ()
 Constructor.

 ~Keyboard ()
 Destructor.

HRESULT initialize (HWND hWnd)
 Initializes the keyboard and ties to the window specified.

bool isKeyDown (int Key)
 Returns TRUE if the key specified is currently held down.


Protected Attributes

LPDIRECTINPUTDEVICE8 m_pKeyDev
 A DirectInput device.

char m_KeyBuffer [256]
 A key buffer.

BOOL m_bInitialized
 True if the keyboard has been initialized.


Detailed Description

Reads from the keyboard using DirectInput.

Taken From: The Zen of Direct3D Game Programming (Peter Walsh)


Constructor & Destructor Documentation

Keyboard::Keyboard  
 

Constructor.

Taken From: The Zen of Direct3D Game Programming (Peter Walsh) Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck

Keyboard::~Keyboard  
 

Destructor.


Member Function Documentation

HRESULT Keyboard::initialize HWND    hWnd
 

Initializes the keyboard and ties to the window specified.

Parameters:
hWnd  the window handle
Returns:
the result

bool Keyboard::isKeyDown int    Key
 

Returns TRUE if the key specified is currently held down.

Parameters:
Key  the key to test
Returns:
TRUE if the key specified is currently held down


Member Data Documentation

BOOL Keyboard::m_bInitialized [protected]
 

True if the keyboard has been initialized.

char Keyboard::m_KeyBuffer[256] [protected]
 

A key buffer.

LPDIRECTINPUTDEVICE8 Keyboard::m_pKeyDev [protected]
 

A DirectInput device.


The documentation for this class was generated from the following files:
Generated on Tue Mar 4 02:29:26 2003 for SuperIsoBomb by doxygen1.2.18