Rise
The Vieneo Province
keyboard Class Reference

#include <keyboard.h>

Collaboration diagram for keyboard:
[legend]

Public Member Functions

 keyboard (Viewscreen *ptr)
 
 ~keyboard ()
 
HRESULT Initialize (HWND hDlg)
 
void WalkForward () const
 
void Brake (float f_temp) const
 
void TurnLeft (float f_temp) const
 
void TurnRight (float f_temp) const
 
void Update (float fElapsedTime)
 

Static Public Member Functions

static void SetScrollLock (bool setState)
 

Private Attributes

Viewscreenviewscreen
 
Loggerlogger
 
float lateralincr = 0.1f
 
float verticalincr = 0.1f
 
bool zoomhold = 0.0f
 
unsigned char olddiks [256] = {}
 
LPDIRECTINPUTDEVICE8 g_pKeyboard = nullptr
 

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

◆ Brake()

void keyboard::Brake ( float  f_temp) const

Definition at line 77 of file keyboard.cpp.

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

◆ Initialize()

HRESULT keyboard::Initialize ( HWND  hDlg)

Definition at line 18 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)
static

Definition at line 1655 of file keyboard.cpp.

Here is the caller graph for this function:

◆ TurnLeft()

void keyboard::TurnLeft ( float  f_temp) const

Definition at line 93 of file keyboard.cpp.

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

◆ TurnRight()

void keyboard::TurnRight ( float  f_temp) const

Definition at line 125 of file keyboard.cpp.

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

◆ Update()

void keyboard::Update ( float  fElapsedTime)

Definition at line 156 of file keyboard.cpp.

Here is the caller graph for this function:

◆ WalkForward()

void keyboard::WalkForward ( ) const

Definition at line 70 of file keyboard.cpp.

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

Member Data Documentation

◆ g_pKeyboard

LPDIRECTINPUTDEVICE8 keyboard::g_pKeyboard = nullptr
private

Definition at line 25 of file keyboard.h.

◆ lateralincr

float keyboard::lateralincr = 0.1f
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 24 of file keyboard.h.

◆ verticalincr

float keyboard::verticalincr = 0.1f
private

Definition at line 22 of file keyboard.h.

◆ viewscreen

Viewscreen* keyboard::viewscreen
private

Definition at line 18 of file keyboard.h.

◆ zoomhold

bool keyboard::zoomhold = 0.0f
private

Definition at line 23 of file keyboard.h.


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