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

#include <cInputKeyboard.h>

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

Public Member Functions

 cInputKeyboardState () noexcept
 
 cInputKeyboardState (const cInputKeyboardState &c) noexcept
 
void InitZero () noexcept
 
BYTE GetKeyState (ITERATE_t nScanCode) const
 
bool IsKeyPressed (ITERATE_t nScanCode) const
 

Static Public Attributes

static const int k_KeyQty = 256
 max keys i can have is 255 More...
 

Protected Attributes

BYTE m_aKeyState [k_KeyQty]
 state of all keys on the keyboard. from top left key = 0, 0x80 = pressed, 1 = toggled. More...
 

Constructor & Destructor Documentation

◆ cInputKeyboardState() [1/2]

GrayLib::cInputKeyboardState::cInputKeyboardState ( )
inlinenoexcept

◆ cInputKeyboardState() [2/2]

GrayLib::cInputKeyboardState::cInputKeyboardState ( const cInputKeyboardState c)
inlinenoexcept

Member Function Documentation

◆ GetKeyState()

BYTE GrayLib::cInputKeyboardState::GetKeyState ( ITERATE_t  nScanCode) const
inline

nScanCode = Scan code.

◆ InitZero()

void GrayLib::cInputKeyboardState::InitZero ( )
inlinenoexcept

◆ IsKeyPressed()

bool GrayLib::cInputKeyboardState::IsKeyPressed ( ITERATE_t  nScanCode) const

nScanCode = offset of key in the raw enum of the device. Scan code.

Member Data Documentation

◆ k_KeyQty

const int GrayLib::cInputKeyboardState::k_KeyQty = 256
static

max keys i can have is 255

◆ m_aKeyState

BYTE GrayLib::cInputKeyboardState::m_aKeyState[k_KeyQty]
protected

state of all keys on the keyboard. from top left key = 0, 0x80 = pressed, 1 = toggled.


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