Rise
The Vieneo Province
Loading...
Searching...
No Matches
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)
void Update (float fElapsedTime)
void InitializeDevice (InputConfig *config, std::string control) const
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

Viewscreen * viewscreen
Logger * logger
HWND hDlg
std::vector< GUID > polledGuids
std::vector< DIJOYSTATE > polledDeviceStates

Detailed Description

Definition at line 17 of file joystick.h.

Constructor & Destructor Documentation

◆ joystick()

joystick::joystick ( Viewscreen * ptr)

Definition at line 130 of file joystick.cpp.

Here is the caller graph for this function:

Member Function Documentation

◆ EnumAxesCallback()

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

Definition at line 1263 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 554 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 1314 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 529 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 ) const

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

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

Definition at line 271 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 29 of file joystick.h.

◆ hDlg

HWND joystick::hDlg
private

Definition at line 35 of file joystick.h.

◆ logger

Logger* joystick::logger
private

Definition at line 34 of file joystick.h.

◆ nullzone

const int joystick::nullzone = 50

Definition at line 30 of file joystick.h.

◆ polledDeviceStates

std::vector<DIJOYSTATE> joystick::polledDeviceStates
private

Definition at line 48 of file joystick.h.

◆ polledGuids

std::vector<GUID> joystick::polledGuids
private

Definition at line 47 of file joystick.h.

◆ viewscreen

Viewscreen* joystick::viewscreen
private

Definition at line 33 of file joystick.h.


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