6 #ifndef _INC_cInputKeyboard_H
7 #define _INC_cInputKeyboard_H
36 : m_sKeyName(sKeyName)
37 , m_vKeyCode(vKeyCode)
57 static const int k_KeyQty = 256;
59 BYTE m_aKeyState[k_KeyQty];
68 ::memcpy(m_aKeyState, c.m_aKeyState,
sizeof(m_aKeyState));
78 return m_aKeyState[nScanCode];
80 bool IsKeyPressed(
ITERATE_t nScanCode)
const;
105 return m_aKeyObjects[nScanCode];
115 return m_aKeyObjects[nScanCode].m_sKeyName;
119 #if defined(_WIN32) && ! defined(UNDER_CE)
121 class GRAYLIB_LINK cInputKeyboardWin :
public cInputKeyboardBase
128 BYTE m_aVKeyToScanCode[256];
132 ~cInputKeyboardWin();
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define IS_INDEX_GOOD(i, q)
cast the (likely) int to unsigned to check for negatives.
Definition: Index.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
#define ASSERT(exp)
Definition: cDebugAssert.h:87
#define UNITTEST_FRIEND(n)
Define this in the class body to be unit tested. Allow the unit test to access private/protected stuf...
Definition: cUnitTestDecl.h:17
ITERATE_t GetSize() const noexcept
Definition: cArray.h:137
bool IsEmpty() const noexcept
Definition: cString.h:176
bool IsValidIndex(ITERATE_t i) const noexcept
Definition: cArray.h:495
UNITTEST2_PREDEF(cQuadtree)
int ITERATE_t
like size_t but signed
Definition: Index.h:28
cStringT< GChar_t > cString
Definition: cString.h:636
static void Zero(void *pData, size_t nSizeBlock) noexcept
Definition: cMem.h:100