#include <joystick.h>


Public Types | |
| enum | emulation_mode { no_emulation, mouse_emulation, enhanced_3d_emulation, first_person_emulation, pedal_emulation, button_pedal_emulation } |
| enum | { MAX_JOYSTICK_BUTTONS = 100 } |
| enum | { MAX_JOYSTICK_AXES = 50 } |
Public Member Functions | |
| Joystick (char *machine_name, int port_num=9899) | |
| virtual | ~Joystick () |
| void | Update () |
| emulation_mode | getJoystickEmulation () |
| void | setJoystickEmulation (emulation_mode emulationMode) |
| int | getNumAxes () |
| int | getNumButtons () |
| int | getButton (int index) |
| float | getAxis (int index) |
Public Attributes | |
| emulation_mode | joystickEmulation |
Static Public Attributes | |
| static const char * | rcsid = "@(#) $Id: joystick.cpp,v 1.8 2006/05/24 16:52:39 sean Exp $ $Copyright: (c)2001 National Biocomputation Center, Stanford University $" |
| static int | debug = 0 |
Classes | |
| struct | Joydata_s |
Definition at line 32 of file joystick.h.
| no_emulation | |
| mouse_emulation | |
| enhanced_3d_emulation | |
| first_person_emulation | |
| pedal_emulation | |
| button_pedal_emulation |
Definition at line 46 of file joystick.h.
| anonymous enum |
| anonymous enum |
| Joystick::Joystick | ( | char * | machine_name, | |
| int | port_num = 9899 | |||
| ) |
Definition at line 31 of file joystick.cpp.
| Joystick::~Joystick | ( | ) | [virtual] |
Definition at line 101 of file joystick.cpp.
| void Joystick::Update | ( | ) | [virtual] |
| emulation_mode Joystick::getJoystickEmulation | ( | ) | [inline] |
Definition at line 58 of file joystick.h.
| void Joystick::setJoystickEmulation | ( | emulation_mode | emulationMode | ) | [inline] |
Definition at line 60 of file joystick.h.
| int Joystick::getNumAxes | ( | ) | [inline] |
Definition at line 68 of file joystick.h.
| int Joystick::getNumButtons | ( | ) | [inline] |
Definition at line 70 of file joystick.h.
| int Joystick::getButton | ( | int | index | ) | [inline] |
Definition at line 75 of file joystick.h.
| float Joystick::getAxis | ( | int | index | ) | [inline] |
Definition at line 79 of file joystick.h.
const char * Joystick::rcsid = "@(#) $Id: joystick.cpp,v 1.8 2006/05/24 16:52:39 sean Exp $ $Copyright: (c)2001 National Biocomputation Center, Stanford University $" [static] |
int Joystick::debug = 0 [static] |
Definition at line 40 of file joystick.h.
Definition at line 55 of file joystick.h.
1.5.3