Rise
The Vieneo Province
Loading...
Searching...
No Matches
keyboard Class Reference

#include <keyboard.h>

Collaboration diagram for keyboard:
[legend]

Public Member Functions

 keyboard (Viewscreen *ptr)
 ~keyboard ()
HRESULT Initialize (HWND hDlg)
void Update (float fElapsedTime)
std::string Translate (short scancode)

Public Attributes

float frameTime = 0.0f
bool g_bShift = false
bool g_bControl = false

Static Private Member Functions

static void SetScrollLock (bool setState)

Private Attributes

Viewscreen * viewscreen
Logger * logger
LPDIRECTINPUTDEVICE8 g_pKeyboard = nullptr
unsigned char olddiks [256] = {}
bool g_bAlt = false

Detailed Description

Definition at line 16 of file keyboard.h.

Constructor & Destructor Documentation

◆ keyboard()

keyboard::keyboard ( Viewscreen * ptr)

Definition at line 6 of file keyboard.cpp.

◆ ~keyboard()

keyboard::~keyboard ( )

Definition at line 12 of file keyboard.cpp.

Member Function Documentation

◆ Initialize()

HRESULT keyboard::Initialize ( HWND hDlg)

Definition at line 19 of file keyboard.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetScrollLock()

void keyboard::SetScrollLock ( bool setState)
staticprivate

Definition at line 294 of file keyboard.cpp.

Here is the caller graph for this function:

◆ Translate()

std::string keyboard::Translate ( short scancode)

Definition at line 307 of file keyboard.cpp.

Here is the caller graph for this function:

◆ Update()

void keyboard::Update ( float fElapsedTime)

Definition at line 68 of file keyboard.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ frameTime

float keyboard::frameTime = 0.0f

Definition at line 29 of file keyboard.h.

◆ g_bAlt

bool keyboard::g_bAlt = false
private

Definition at line 24 of file keyboard.h.

◆ g_bControl

bool keyboard::g_bControl = false

Definition at line 32 of file keyboard.h.

◆ g_bShift

bool keyboard::g_bShift = false

Definition at line 31 of file keyboard.h.

◆ g_pKeyboard

LPDIRECTINPUTDEVICE8 keyboard::g_pKeyboard = nullptr
private

Definition at line 21 of file keyboard.h.

◆ logger

Logger* keyboard::logger
private

Definition at line 19 of file keyboard.h.

◆ olddiks

unsigned char keyboard::olddiks[256] = {}
private

Definition at line 22 of file keyboard.h.

◆ viewscreen

Viewscreen* keyboard::viewscreen
private

Definition at line 18 of file keyboard.h.


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