Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
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_Joystick * m_Joystick
 
int m_Deadzone
 

Constructor & Destructor Documentation

◆ CJoystick()

CJoystick::CJoystick ( )

Member Function Documentation

◆ GetAxisValue()

float CJoystick::GetAxisValue ( int  axis)

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

◆ Initialise()

void CJoystick::Initialise ( )

Initialises joystick support.

◆ IsEnabled()

bool CJoystick::IsEnabled ( )

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

Member Data Documentation

◆ m_Deadzone

int CJoystick::m_Deadzone
private

◆ m_Joystick

SDL_Joystick* CJoystick::m_Joystick
private

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