SDLJoyStick Class Reference

#include <joystickwidget.h>

Inheritance diagram for SDLJoyStick:

QWidget

List of all members.


Detailed Description

Definition at line 13 of file joystickwidget.h.


Public Slots

void SDLevent ()

Signals

void axisValue (int axis, int value)
void buttonValue (int button, bool value)
void hatValue (int hat, int value)
void ballValue (int delta_x, int delta_y)

Public Member Functions

 SDLJoyStick (QWidget *parent=0)
 ~SDLJoyStick ()
void axis (int value)
void open (int stick)
bool opened ()

Public Attributes

QString boot_text
SDL_Joystick * joystick
int num_axes
int num_buttons
int num_hats
int num_balls

Private Attributes

Sint16 axes [8]
Uint8 buttons [16]
Uint8 hats [4]

Constructor & Destructor Documentation

SDLJoyStick::SDLJoyStick ( QWidget parent = 0  ) 

Definition at line 3 of file joystickwidget.cpp.

References joystick, name, num_axes, num_balls, num_buttons, num_hats, QByteArray::setNum(), and QString::toAscii().

Here is the call graph for this function:

SDLJoyStick::~SDLJoyStick (  ) 

Definition at line 43 of file joystickwidget.cpp.


Member Function Documentation

void SDLJoyStick::axis ( int  value  ) 

void SDLJoyStick::open ( int  stick  ) 

Definition at line 47 of file joystickwidget.cpp.

References joystick.

Referenced by SDLPlugin::CoreInit().

bool SDLJoyStick::opened (  ) 

Definition at line 52 of file joystickwidget.cpp.

References joystick.

void SDLJoyStick::axisValue ( int  axis,
int  value 
) [signal]

Referenced by SDLevent().

void SDLJoyStick::buttonValue ( int  button,
bool  value 
) [signal]

Referenced by SDLevent().

void SDLJoyStick::hatValue ( int  hat,
int  value 
) [signal]

Referenced by SDLevent().

void SDLJoyStick::ballValue ( int  delta_x,
int  delta_y 
) [signal]

Referenced by SDLevent().

void SDLJoyStick::SDLevent (  )  [slot]

Called by a timer signal, this reads all inputs, and emits signals if anything changed

Definition at line 61 of file joystickwidget.cpp.

References axes, axisValue(), ballValue(), buttons, buttonValue(), hats, hatValue(), joystick, num_axes, num_balls, num_buttons, and num_hats.


Member Data Documentation

QString SDLJoyStick::boot_text

Definition at line 20 of file joystickwidget.h.

SDL_Joystick* SDLJoyStick::joystick

Definition at line 25 of file joystickwidget.h.

Referenced by open(), opened(), SDLevent(), and SDLJoyStick().

int SDLJoyStick::num_axes

Definition at line 27 of file joystickwidget.h.

Referenced by SDLPlugin::getDock(), SDLevent(), and SDLJoyStick().

int SDLJoyStick::num_buttons

Definition at line 28 of file joystickwidget.h.

Referenced by SDLPlugin::getDock(), SDLevent(), and SDLJoyStick().

int SDLJoyStick::num_hats

Definition at line 29 of file joystickwidget.h.

Referenced by SDLPlugin::getDock(), SDLevent(), and SDLJoyStick().

int SDLJoyStick::num_balls

Definition at line 30 of file joystickwidget.h.

Referenced by SDLevent(), and SDLJoyStick().

Sint16 SDLJoyStick::axes[8] [private]

Definition at line 35 of file joystickwidget.h.

Referenced by SDLevent().

Uint8 SDLJoyStick::buttons[16] [private]

Definition at line 36 of file joystickwidget.h.

Referenced by SDLevent().

Uint8 SDLJoyStick::hats[4] [private]

Definition at line 37 of file joystickwidget.h.

Referenced by SDLevent().


The documentation for this class was generated from the following files:
Generated on Sun Oct 28 22:51:45 2007 for BBoB by  doxygen 1.5.3