OpenMortal Apocalypse mirror
Sourceforge mirror
SourceForge.net Logo
      News | Info | Characters | Arenas | Screenshots | Forums | Download  
Developer: Making of | Character-HOWTO | AI Design | Submit a Character
Documentation: Main Page | Modules | Class Hierarchy | Class List | File List

CJoystick Class Reference
[Sound and graphics]

#include <Joystick.h>

List of all members.

Public Member Functions

 CJoystick ()
 ~CJoystick ()
int Init ()
bool TranslateEvent (const SDL_Event *a_poInEvent, SMortalEvent *a_poOutEvent)
const char * GetJoystickName (int a_iJoystickNumber)

Protected Types

enum  { mg_iMaxJoysticks = 32 }

Protected Member Functions

int AxisWorkaround (const SDL_JoyAxisEvent &a_roEvent)

Protected Attributes

int m_iNumJoysticks
SDL_Joystick * m_apoJoysticks [mg_iMaxJoysticks]
const char * m_apcJoystickNames [mg_iMaxJoysticks]
bool m_abWorkaround [mg_iMaxJoysticks]
int m_aiHorizontalAxis [mg_iMaxJoysticks]
int m_aiVerticalAxis [mg_iMaxJoysticks]


Member Enumeration Documentation

anonymous enum [protected]
 

Enumeration values:
mg_iMaxJoysticks 


Constructor & Destructor Documentation

CJoystick::CJoystick  ) 
 

CJoystick::~CJoystick  ) 
 


Member Function Documentation

int CJoystick::AxisWorkaround const SDL_JoyAxisEvent &  a_roEvent  )  [protected]
 

const char * CJoystick::GetJoystickName int  a_iJoystickNumber  ) 
 

int CJoystick::Init  ) 
 

bool CJoystick::TranslateEvent const SDL_Event *  a_poInEvent,
SMortalEvent a_poOutEvent
 


Member Data Documentation

bool CJoystick::m_abWorkaround[mg_iMaxJoysticks] [protected]
 

int CJoystick::m_aiHorizontalAxis[mg_iMaxJoysticks] [protected]
 

int CJoystick::m_aiVerticalAxis[mg_iMaxJoysticks] [protected]
 

const char* CJoystick::m_apcJoystickNames[mg_iMaxJoysticks] [protected]
 

SDL_Joystick* CJoystick::m_apoJoysticks[mg_iMaxJoysticks] [protected]
 

int CJoystick::m_iNumJoysticks [protected]
 


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