Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
CJoystick Class Reference

#include <Joystick.h>

Public Member Functions

 CJoystick ()
 
void Initialise ()
 Initialises joystick support. More...
 
bool IsEnabled ()
 Returns true if initialised and the joystick is present and enabled by configuration. More...
 
float GetAxisValue (int axis)
 Returns current value of the given joystick axis, in the range [-1, +1]. More...
 

Private Attributes

SDL_Joystickm_Joystick
 
int m_Deadzone
 

Detailed Description

Definition at line 23 of file Joystick.h.

Constructor & Destructor Documentation

CJoystick::CJoystick ( )

Definition at line 28 of file Joystick.cpp.

Member Function Documentation

float CJoystick::GetAxisValue ( int  axis)

Returns current value of the given joystick axis, in the range [-1, +1].

Definition at line 87 of file Joystick.cpp.

void CJoystick::Initialise ( )

Initialises joystick support.

Definition at line 33 of file Joystick.cpp.

bool CJoystick::IsEnabled ( )

Returns true if initialised and the joystick is present and enabled by configuration.

Definition at line 82 of file Joystick.cpp.

Member Data Documentation

int CJoystick::m_Deadzone
private

Definition at line 45 of file Joystick.h.

SDL_Joystick* CJoystick::m_Joystick
private

Definition at line 44 of file Joystick.h.


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