Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cInputKeyboardBase Class Reference

#include <cInputKeyboard.h>

Inheritance diagram for GrayLib::cInputKeyboardBase:
GrayLib::cInputKeyboardState

Public Member Functions

 cInputKeyboardBase () noexcept
 
ITERATE_t get_KeyQty () const noexcept
 
const cInputKeyObjGetKeyObj (ITERATE_t nScanCode) const
 
cString GetKeyName (ITERATE_t nScanCode) const
 
- Public Member Functions inherited from GrayLib::cInputKeyboardState
 cInputKeyboardState () noexcept
 
 cInputKeyboardState (const cInputKeyboardState &c) noexcept
 
void InitZero () noexcept
 
BYTE GetKeyState (ITERATE_t nScanCode) const
 
bool IsKeyPressed (ITERATE_t nScanCode) const
 

Protected Attributes

cArrayStruct< cInputKeyObjm_aKeyObjects
 Array of all keys on the device. (up to 255) More...
 
- Protected Attributes inherited from GrayLib::cInputKeyboardState
BYTE m_aKeyState [k_KeyQty]
 state of all keys on the keyboard. from top left key = 0, 0x80 = pressed, 1 = toggled. More...
 

Additional Inherited Members

- Static Public Attributes inherited from GrayLib::cInputKeyboardState
static const int k_KeyQty = 256
 max keys i can have is 255 More...
 

Detailed Description

A keyboard device.

Constructor & Destructor Documentation

◆ cInputKeyboardBase()

GrayLib::cInputKeyboardBase::cInputKeyboardBase ( )
inlinenoexcept

Member Function Documentation

◆ get_KeyQty()

ITERATE_t GrayLib::cInputKeyboardBase::get_KeyQty ( ) const
inlinenoexcept

◆ GetKeyName()

cString GrayLib::cInputKeyboardBase::GetKeyName ( ITERATE_t  nScanCode) const
inline

enum the keys on the keyboard. map to ASCII value or VK_ESCAPE windows value ? nScanCode = Scan code.

Returns
"" = unused key.

◆ GetKeyObj()

const cInputKeyObj& GrayLib::cInputKeyboardBase::GetKeyObj ( ITERATE_t  nScanCode) const
inline

nScanCode = Scan code.

Member Data Documentation

◆ m_aKeyObjects

cArrayStruct<cInputKeyObj> GrayLib::cInputKeyboardBase::m_aKeyObjects
protected

Array of all keys on the device. (up to 255)


The documentation for this class was generated from the following file: