Rise
The Vieneo Province
joystick Class Reference

#include <joystick.h>

Collaboration diagram for joystick:
[legend]

Classes

struct  Wrapper
 

Public Member Functions

 joystick (Viewscreen *ptr)
 
HRESULT Poll (InputConfig *config, long *value, DIJOYSTATE *js) const
 
void Update (float fElapsedTime) const
 
void InitializeDevice (InputConfig *config, std::string control)
 
void Initialize (HWND prmHWND)
 
HRESULT EnumDevices ()
 
bool IsGameController (WCHAR *deviceName) const
 

Public Attributes

std::vector< DIDEVICEINSTANCE > deviceList
 
const int nullzone = 50
 

Static Private Member Functions

static BOOL CALLBACK EnumAxesCallback (const DIDEVICEOBJECTINSTANCE *pdidoi, VOID *pContext)
 
static BOOL CALLBACK EnumDevicesCallback (const DIDEVICEINSTANCE *pInst, VOID *pContext)
 

Private Attributes

Viewscreenviewscreen
 
Loggerlogger
 
HWND hDlg
 

Detailed Description

Definition at line 15 of file joystick.h.

Constructor & Destructor Documentation

◆ joystick()

joystick::joystick ( Viewscreen ptr)

Definition at line 6 of file joystick.cpp.

Member Function Documentation

◆ EnumAxesCallback()

BOOL CALLBACK joystick::EnumAxesCallback ( const DIDEVICEOBJECTINSTANCE *  pdidoi,
VOID *  pContext 
)
staticprivate

Definition at line 858 of file joystick.cpp.

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

◆ EnumDevices()

HRESULT joystick::EnumDevices ( )

Definition at line 350 of file joystick.cpp.

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

◆ EnumDevicesCallback()

BOOL CALLBACK joystick::EnumDevicesCallback ( const DIDEVICEINSTANCE *  pInst,
VOID *  pContext 
)
staticprivate

Definition at line 899 of file joystick.cpp.

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

◆ Initialize()

void joystick::Initialize ( HWND  prmHWND)

Definition at line 325 of file joystick.cpp.

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

◆ InitializeDevice()

void joystick::InitializeDevice ( InputConfig config,
std::string  control 
)

Definition at line 369 of file joystick.cpp.

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

◆ IsGameController()

bool joystick::IsGameController ( WCHAR *  deviceName) const

◆ Poll()

HRESULT joystick::Poll ( InputConfig config,
long *  value,
DIJOYSTATE *  js 
) const

Definition at line 13 of file joystick.cpp.

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

◆ Update()

void joystick::Update ( float  fElapsedTime) const

Definition at line 84 of file joystick.cpp.

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

Member Data Documentation

◆ deviceList

std::vector<DIDEVICEINSTANCE> joystick::deviceList

Definition at line 27 of file joystick.h.

◆ hDlg

HWND joystick::hDlg
private

Definition at line 33 of file joystick.h.

◆ logger

Logger* joystick::logger
private

Definition at line 32 of file joystick.h.

◆ nullzone

const int joystick::nullzone = 50

Definition at line 28 of file joystick.h.

◆ viewscreen

Viewscreen* joystick::viewscreen
private

Definition at line 31 of file joystick.h.


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