argos::CQTOpenGLJoystick Class Reference

#include <qtopengl_joystick.h>

Inheritance diagram for argos::CQTOpenGLJoystick:
Collaboration diagram for argos::CQTOpenGLJoystick:

Public Slots

void processEvents ()
 

Signals

void axisValueChanged (int axis, int value)
 
void buttonValueChanged (int button, bool value)
 
void hatValueChanged (int hat, int value)
 
void trackballValueChanged (int trackball, int deltaX, int deltaY)
 

Public Member Functions

 CQTOpenGLJoystick (QObject *parent=0, int joystickEventTimeout=SDL_JOYSTICK_DEFAULT_EVENT_TIMEOUT, bool doAutoRepeat=TRUE, int autoRepeatDelay=SDL_JOYSTICK_DEFAULT_AUTOREPEAT_DELAY)
 
 ~CQTOpenGLJoystick ()
 
void open (int)
 
void close ()
 
bool isOpen () const
 
int getAxisValue (int)
 
bool connected () const
 

Public Attributes

QStringList joystickNames
 
SDL_Joystick * joystick
 
int numAxes
 
int numButtons
 
int numHats
 
int numTrackballs
 
int eventTimeout
 
int autoRepeatDelay
 
bool autoRepeat
 
QTimer joystickTimer
 
QMap< int, int > deadzones
 
QMap< int, int > sensitivities
 

Detailed Description

Definition at line 25 of file qtopengl_joystick.h.

Constructor & Destructor Documentation

◆ CQTOpenGLJoystick()

argos::CQTOpenGLJoystick::CQTOpenGLJoystick ( QObject *  parent = 0,
int  joystickEventTimeout = SDL_JOYSTICK_DEFAULT_EVENT_TIMEOUT,
bool  doAutoRepeat = TRUE,
int  autoRepeatDelay = SDL_JOYSTICK_DEFAULT_AUTOREPEAT_DELAY 
)

Definition at line 19 of file qtopengl_joystick.cpp.

◆ ~CQTOpenGLJoystick()

argos::CQTOpenGLJoystick::~CQTOpenGLJoystick ( )

Definition at line 43 of file qtopengl_joystick.cpp.

Member Function Documentation

◆ axisValueChanged

void argos::CQTOpenGLJoystick::axisValueChanged ( int  axis,
int  value 
)
signal

◆ buttonValueChanged

void argos::CQTOpenGLJoystick::buttonValueChanged ( int  button,
bool  value 
)
signal

◆ close()

void argos::CQTOpenGLJoystick::close ( )

Definition at line 74 of file qtopengl_joystick.cpp.

◆ connected()

bool argos::CQTOpenGLJoystick::connected ( ) const
inline

Definition at line 52 of file qtopengl_joystick.h.

◆ getAxisValue()

int argos::CQTOpenGLJoystick::getAxisValue ( int  axis)

Definition at line 153 of file qtopengl_joystick.cpp.

◆ hatValueChanged

void argos::CQTOpenGLJoystick::hatValueChanged ( int  hat,
int  value 
)
signal

◆ isOpen()

bool argos::CQTOpenGLJoystick::isOpen ( ) const
inline

Definition at line 50 of file qtopengl_joystick.h.

◆ open()

void argos::CQTOpenGLJoystick::open ( int  stick)

Definition at line 54 of file qtopengl_joystick.cpp.

◆ processEvents

void argos::CQTOpenGLJoystick::processEvents ( )
slot

Definition at line 86 of file qtopengl_joystick.cpp.

◆ trackballValueChanged

void argos::CQTOpenGLJoystick::trackballValueChanged ( int  trackball,
int  deltaX,
int  deltaY 
)
signal

Member Data Documentation

◆ autoRepeat

bool argos::CQTOpenGLJoystick::autoRepeat

Definition at line 38 of file qtopengl_joystick.h.

◆ autoRepeatDelay

int argos::CQTOpenGLJoystick::autoRepeatDelay

Definition at line 37 of file qtopengl_joystick.h.

◆ deadzones

QMap<int, int> argos::CQTOpenGLJoystick::deadzones

Definition at line 40 of file qtopengl_joystick.h.

◆ eventTimeout

int argos::CQTOpenGLJoystick::eventTimeout

Definition at line 36 of file qtopengl_joystick.h.

◆ joystick

SDL_Joystick* argos::CQTOpenGLJoystick::joystick

Definition at line 31 of file qtopengl_joystick.h.

◆ joystickNames

QStringList argos::CQTOpenGLJoystick::joystickNames

Definition at line 30 of file qtopengl_joystick.h.

◆ joystickTimer

QTimer argos::CQTOpenGLJoystick::joystickTimer

Definition at line 39 of file qtopengl_joystick.h.

◆ numAxes

int argos::CQTOpenGLJoystick::numAxes

Definition at line 32 of file qtopengl_joystick.h.

◆ numButtons

int argos::CQTOpenGLJoystick::numButtons

Definition at line 33 of file qtopengl_joystick.h.

◆ numHats

int argos::CQTOpenGLJoystick::numHats

Definition at line 34 of file qtopengl_joystick.h.

◆ numTrackballs

int argos::CQTOpenGLJoystick::numTrackballs

Definition at line 35 of file qtopengl_joystick.h.

◆ sensitivities

QMap<int, int> argos::CQTOpenGLJoystick::sensitivities

Definition at line 41 of file qtopengl_joystick.h.