ARGoS  3
A parallel, multi-engine simulator for swarm robotics
argos::CQTOpenGLJoystick Class Reference

#include <qtopengl_joystick.h>

List of all members.

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.


Member Function Documentation

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

Definition at line 74 of file qtopengl_joystick.cpp.

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

Definition at line 52 of file qtopengl_joystick.h.

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.

Definition at line 86 of file qtopengl_joystick.cpp.

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

Member Data Documentation

Definition at line 40 of file qtopengl_joystick.h.

Definition at line 31 of file qtopengl_joystick.h.

Definition at line 30 of file qtopengl_joystick.h.

Definition at line 32 of file qtopengl_joystick.h.

Definition at line 34 of file qtopengl_joystick.h.

Definition at line 41 of file qtopengl_joystick.h.


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