#include <Keyboard.h>
Inherited by gedi::KeyboardState.
Inheritance diagram for gedi::Keyboard:
Public Member Functions | |
Keyboard (void) | |
~Keyboard (void) | |
gedi::Error32 | Init (HWND hWindow) |
gedi::Error32 | Update (void) |
gedi::Bool32 | IsButtonDown (gedi::UInt32 iButton) |
gedi::Bool32 | IsButtonUp (gedi::UInt32 iButton) |
Protected Attributes | |
LPDIRECTINPUTDEVICE8 | m_lpkDIDevice |
gedi::UInt8 | m_iKeyBuffer [256] |
gedi::Keyboard::Keyboard | ( | void | ) |
Constructor
gedi::Keyboard::~Keyboard | ( | void | ) |
Destructor
gedi::Error32 gedi::Keyboard::Init | ( | HWND | hWindow | ) |
Keyboard initialization method
gedi::Error32 gedi::Keyboard::Update | ( | void | ) |
Update method
gedi::Bool32 gedi::Keyboard::IsButtonDown | ( | gedi::UInt32 | iButton | ) |
Returns true if a button is down.
iButton | DirectInput keyboard constant. |
gedi::Bool32 gedi::Keyboard::IsButtonUp | ( | gedi::UInt32 | iButton | ) |
Returns true if a button is up.
iButton | DirectInput keyboard constant. |
LPDIRECTINPUTDEVICE8 gedi::Keyboard::m_lpkDIDevice [protected] |
DirectInput objects
gedi::UInt8 gedi::Keyboard::m_iKeyBuffer[256] [protected] |
Our key buffer