Classes | Namespaces | Variables

C:/Active/libraries/cxutils/2.0/src/cxutils/joystick.cpp File Reference

Simple Joystick class for interfacing to a joystick. More...

#include "cxutils/joystick.h"
#include <assert.h>
#include <string.h>
#include <math.h>
#include <iostream>
#include <iomanip>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <linux/joystick.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <map>

Go to the source code of this file.

Classes

class  CxUtils::JoystickInterface
 Internal wrapper interface for the Joystick class implementation to encapsulate Windowns and Linux code. More...

Namespaces

namespace  CxUtils

Variables

const short int JOYSTICK_X_AXIS = 0
 Axis on joystick.
const short int JOYSTICK_Y_AXIS = 1
 Axis on joystick.
const short int JOYSTICK_Z_AXIS = 2
 Axis on joystick.
const short int JOYSTICK_R_AXIS = 3
 Axis on joystick.
const short int JOYSTICK_U_AXIS = 4
 Axis on joystick.
const short int JOYSTICK_V_AXIS = 5
 Axis on joystick.
const short int JOYSTICK_POV_AXIS = 6
 Axis on joystick (Point of View (POV) Hat.
const short int JOYSTICK_POV_X_AXIS = 7
 POV X.
const short int JOYSTICK_POV_Y_AXIS = 8
 POV Y.

Detailed Description

Simple Joystick class for interfacing to a joystick.


Author(s): Daniel Barber
Created: 21 May 2007
Copyright (c) 2009
Applied Cognition and Training in Immersive Virtual Environments
(ACTIVE) Laboratory
Institute for Simulation and Training (IST)
University of Central Florida (UCF)
All rights reserved.
Email: dbarber@ist.ucf.edu
Web: http://active.ist.ucf.edu

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of the ACTIVE LAB, IST, UCF, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE ACTIVE LAB''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL UCF BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file joystick.cpp.


Variable Documentation

const short int JOYSTICK_POV_AXIS = 6

Axis on joystick (Point of View (POV) Hat.

Definition at line 68 of file joystick.cpp.

const short int JOYSTICK_POV_X_AXIS = 7

POV X.

Definition at line 69 of file joystick.cpp.

const short int JOYSTICK_POV_Y_AXIS = 8

POV Y.

Definition at line 70 of file joystick.cpp.

const short int JOYSTICK_R_AXIS = 3

Axis on joystick.

Definition at line 65 of file joystick.cpp.

const short int JOYSTICK_U_AXIS = 4

Axis on joystick.

Definition at line 66 of file joystick.cpp.

const short int JOYSTICK_V_AXIS = 5

Axis on joystick.

Definition at line 67 of file joystick.cpp.

const short int JOYSTICK_X_AXIS = 0

Axis on joystick.

Definition at line 62 of file joystick.cpp.

const short int JOYSTICK_Y_AXIS = 1

Axis on joystick.

Definition at line 63 of file joystick.cpp.

const short int JOYSTICK_Z_AXIS = 2

Axis on joystick.

Definition at line 64 of file joystick.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines