Warning: include(php/utility.php): Failed to open stream: No such file or directory in /home/argos/argos3/doc/api/embedded/a00220.php on line 2

Warning: include(): Failed opening 'php/utility.php' for inclusion (include_path='.:/usr/lib64/php') in /home/argos/argos3/doc/api/embedded/a00220.php on line 2
The ARGoS Website

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

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.

argos::CQTOpenGLJoystick::~CQTOpenGLJoystick ( )

Definition at line 43 of file qtopengl_joystick.cpp.

Member Function Documentation

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

Definition at line 74 of file qtopengl_joystick.cpp.

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

Definition at line 52 of file qtopengl_joystick.h.

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

Definition at line 153 of file qtopengl_joystick.cpp.

void argos::CQTOpenGLJoystick::hatValueChanged ( int  hat,
int  value 
)
signal
bool argos::CQTOpenGLJoystick::isOpen ( ) const
inline

Definition at line 50 of file qtopengl_joystick.h.

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

Definition at line 54 of file qtopengl_joystick.cpp.

void argos::CQTOpenGLJoystick::processEvents ( )
slot

Definition at line 86 of file qtopengl_joystick.cpp.

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

Member Data Documentation

bool argos::CQTOpenGLJoystick::autoRepeat

Definition at line 38 of file qtopengl_joystick.h.

int argos::CQTOpenGLJoystick::autoRepeatDelay

Definition at line 37 of file qtopengl_joystick.h.

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

Definition at line 40 of file qtopengl_joystick.h.

int argos::CQTOpenGLJoystick::eventTimeout

Definition at line 36 of file qtopengl_joystick.h.

SDL_Joystick* argos::CQTOpenGLJoystick::joystick

Definition at line 31 of file qtopengl_joystick.h.

QStringList argos::CQTOpenGLJoystick::joystickNames

Definition at line 30 of file qtopengl_joystick.h.

QTimer argos::CQTOpenGLJoystick::joystickTimer

Definition at line 39 of file qtopengl_joystick.h.

int argos::CQTOpenGLJoystick::numAxes

Definition at line 32 of file qtopengl_joystick.h.

int argos::CQTOpenGLJoystick::numButtons

Definition at line 33 of file qtopengl_joystick.h.

int argos::CQTOpenGLJoystick::numHats

Definition at line 34 of file qtopengl_joystick.h.

int argos::CQTOpenGLJoystick::numTrackballs

Definition at line 35 of file qtopengl_joystick.h.

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

Definition at line 41 of file qtopengl_joystick.h.