#include <Keyboard.h>
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. |
Taken From: The Zen of Direct3D Game Programming (Peter Walsh)
|
Constructor. Taken From: The Zen of Direct3D Game Programming (Peter Walsh) Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck |
|
Destructor.
|
|
Initializes the keyboard and ties to the window specified.
|
|
Returns TRUE if the key specified is currently held down.
|
|
True if the keyboard has been initialized.
|
|
A key buffer.
|
|
A DirectInput device.
|