DDraceNetwork Docs
CInput::CJoystick Class Reference

#include <input.h>

Inheritance diagram for CInput::CJoystick:
[legend]
Collaboration diagram for CInput::CJoystick:
[legend]

Public Member Functions

 CJoystick ()
 
 CJoystick (CInput *pInput, int Index, SDL_Joystick *pDelegate)
 
virtual ~CJoystick ()=default
 
int GetIndex () const override
 
const char * GetName () const override
 
const char * GetGUID () const
 
SDL_JoystickID GetInstanceId () const
 
int GetNumAxes () const override
 
int GetNumButtons () const override
 
int GetNumBalls () const override
 
int GetNumHats () const override
 
float GetAxisValue (int Axis) override
 
void GetHatValue (int Hat, int(&HatKeys)[2]) override
 
bool Relative (float *pX, float *pY) override
 
bool Absolute (float *pX, float *pY) override
 

Static Public Member Functions

static void GetJoystickHatKeys (int Hat, int HatValue, int(&HatKeys)[2])
 

Private Member Functions

CInputInput ()
 

Private Attributes

CInputm_pInput
 
int m_Index
 
char m_aName [64]
 
char m_aGUID [34]
 
SDL_JoystickID m_InstanceId
 
int m_NumAxes
 
int m_NumButtons
 
int m_NumBalls
 
int m_NumHats
 
SDL_Joystick * m_pDelegate
 

Friends

class CInput
 

Constructor & Destructor Documentation

◆ CJoystick() [1/2]

CInput::CJoystick::CJoystick ( )
inline

◆ CJoystick() [2/2]

CInput::CJoystick::CJoystick ( CInput pInput,
int  Index,
SDL_Joystick *  pDelegate 
)

◆ ~CJoystick()

virtual CInput::CJoystick::~CJoystick ( )
virtualdefault

Member Function Documentation

◆ Absolute()

bool CInput::CJoystick::Absolute ( float *  pX,
float *  pY 
)
override

◆ GetAxisValue()

float CInput::CJoystick::GetAxisValue ( int  Axis)
override

◆ GetGUID()

const char * CInput::CJoystick::GetGUID ( ) const
inline

◆ GetHatValue()

void CInput::CJoystick::GetHatValue ( int  Hat,
int(&)  HatKeys[2] 
)
override

◆ GetIndex()

int CInput::CJoystick::GetIndex ( ) const
inlineoverride

◆ GetInstanceId()

SDL_JoystickID CInput::CJoystick::GetInstanceId ( ) const
inline

◆ GetJoystickHatKeys()

void CInput::CJoystick::GetJoystickHatKeys ( int  Hat,
int  HatValue,
int(&)  HatKeys[2] 
)
static

◆ GetName()

const char * CInput::CJoystick::GetName ( ) const
inlineoverride

◆ GetNumAxes()

int CInput::CJoystick::GetNumAxes ( ) const
inlineoverride

◆ GetNumBalls()

int CInput::CJoystick::GetNumBalls ( ) const
inlineoverride

◆ GetNumButtons()

int CInput::CJoystick::GetNumButtons ( ) const
inlineoverride

◆ GetNumHats()

int CInput::CJoystick::GetNumHats ( ) const
inlineoverride

◆ Input()

CInput * CInput::CJoystick::Input ( )
inlineprivate

◆ Relative()

bool CInput::CJoystick::Relative ( float *  pX,
float *  pY 
)
override

Friends And Related Function Documentation

◆ CInput

friend class CInput
friend

Member Data Documentation

◆ m_aGUID

char CInput::CJoystick::m_aGUID[34]
private

◆ m_aName

char CInput::CJoystick::m_aName[64]
private

◆ m_Index

int CInput::CJoystick::m_Index
private

◆ m_InstanceId

SDL_JoystickID CInput::CJoystick::m_InstanceId
private

◆ m_NumAxes

int CInput::CJoystick::m_NumAxes
private

◆ m_NumBalls

int CInput::CJoystick::m_NumBalls
private

◆ m_NumButtons

int CInput::CJoystick::m_NumButtons
private

◆ m_NumHats

int CInput::CJoystick::m_NumHats
private

◆ m_pDelegate

SDL_Joystick* CInput::CJoystick::m_pDelegate
private

◆ m_pInput

CInput* CInput::CJoystick::m_pInput
private

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