#include <Keyboard.h>
Definition at line 40 of file Keyboard.h.
◆ BufferProc()
| void Devices::Keyboard::BufferProc |
( |
bool |
bEnterKey | ) |
|
|
private |
◆ Destroy()
| void Devices::Keyboard::Destroy |
( |
| ) |
|
◆ EnumKeyboardsCallback()
| BOOL CALLBACK Devices::Keyboard::EnumKeyboardsCallback |
( |
const DIDEVICEINSTANCE * |
pdidInstance, |
|
|
VOID * |
pContext |
|
) |
| |
|
staticprivate |
◆ FrameMove()
| void Devices::Keyboard::FrameMove |
( |
float |
fElapsed | ) |
|
iterate through the non-buffer key types first (by scan code)
would it be easiest if the keyboard mapping was elsewhere? can't do VK_UP because we don't know then which part of the keyboard it came from... probably just fine because we are here only to add keys to the buffer which should be legible string data
this really only works on the main keyboard but keeps me from mapping a bunch of keys manually
if we are still here then we have not handled the key
Definition at line 84 of file Keyboard.cpp.
◆ Initialize()
| void Devices::Keyboard::Initialize |
( |
Logger * |
logger, |
|
|
KeyboardConfig * |
config, |
|
|
Bus * |
prmBus, |
|
|
LPDIRECTINPUT8 |
g_pDI |
|
) |
| |
◆ SetNumLock()
| void Devices::Keyboard::SetNumLock |
( |
bool |
bState | ) |
|
|
staticprivate |
◆ SetWindowHandles()
| void Devices::Keyboard::SetWindowHandles |
( |
std::vector< HWND > |
prmHwnds | ) |
|
|
inline |
◆ alt
| bool Devices::Keyboard::alt = false |
|
private |
◆ buffer
| char Devices::Keyboard::buffer[10] |
|
private |
◆ bus
| Bus* Devices::Keyboard::bus = nullptr |
|
private |
◆ ctrl
| bool Devices::Keyboard::ctrl = false |
|
private |
◆ g_pKeyboard
| LPDIRECTINPUTDEVICE8 Devices::Keyboard::g_pKeyboard = nullptr |
|
private |
◆ hkl
| HKL Devices::Keyboard::hkl = nullptr |
|
private |
◆ hwnds
| std::vector<HWND> Devices::Keyboard::hwnds |
|
private |
◆ keyboardConfig
◆ keyboardState
| unsigned char Devices::Keyboard::keyboardState[256] |
|
private |
contains state of keyboard
Definition at line 50 of file Keyboard.h.
◆ logger
| Logger* Devices::Keyboard::logger = nullptr |
|
private |
◆ oldKeyboardState
| unsigned char Devices::Keyboard::oldKeyboardState[256] |
|
private |
contains previous state of keyboard
Definition at line 52 of file Keyboard.h.
◆ shift
| bool Devices::Keyboard::shift = false |
|
private |
◆ timeSinceLastKeypress
| float Devices::Keyboard::timeSinceLastKeypress = 0.0f |
|
private |
The documentation for this class was generated from the following files: