Logo Search packages:      
Sourcecode: blender version File versions  Download package

SCA_Joystick Class Reference

#include <SCA_Joystick.h>

List of all members.


Detailed Description

***** BEGIN GPL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or

modify it under the terms of the GNU General Public License

as published by the Free Software Foundation; either version 2

of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

GNU General Public License for more details.

You should have received a copy of the GNU General Public License

along with this program; if not, write to the Free Software Foundation,

Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.

All rights reserved.

The Original Code is: all of this file.

Contributor(s): snailrose.

***** END GPL LICENSE BLOCK *****

Definition at line 76 of file SCA_Joystick.h.


Public Member Functions

bool aButtonPressIsPositive (int button)
bool aButtonReleaseIsPositive (int button)
bool aDownAxisIsPositive (int axis)
bool aHatIsPositive (int dir)
bool aLeftAxisIsPositive (int axis)
bool aRightAxisIsPositive (int axis)
bool aUpAxisIsPositive (int axis)
void cSetPrecision (int val)
int GetAxis10 (void)
int GetAxis11 (void)
int GetAxis20 (void)
int GetAxis21 (void)
int GetButton (void)
int GetHat (void)
bool GetJoyAxisMotion (void)
bool GetJoyButtonPress (void)
bool GetJoyButtonRelease (void)
bool GetJoyHatMotion (void)
int GetNumberOfAxes (void)
int GetNumberOfButtons (void)
int GetNumberOfHats (void)
int GetThreshold (void)
void HandleEvents ()
bool IsTrig (void)
void ReleaseInstance ()

Static Public Member Functions

static SCA_JoystickGetInstance ()

Private Member Functions

bool CreateJoystickDevice (void)
void DestroyJoystickDevice (void)
void OnAxisMotion (void)
void OnBallMotion (void)
void OnButtonDown (void)
void OnButtonUp (void)
void OnHatMotion (void)
void OnNothing (void)
bool pCreateJoystickDevice (void)
void pDestroyJoystickDevice (void)
void pFillAxes (void)
void pFillButtons (void)
int pGetAxis (int axisnum, int udlr)
int pGetButtonPress (int button)
int pGetButtonRelease (int button)
int pGetHat (int direction)
 SCA_Joystick ()

Private Attributes

int m_axis10
int m_axis11
int m_axis20
int m_axis21
int m_axisnum
int m_axisvalue
int m_buttonmax
int m_buttonnum
int m_hatdir
int m_hatnum
bool m_isinit
bool m_istrig
int m_joyindex
int m_numjoys
int m_prec
PrivateDatam_private

Static Private Attributes

static SCA_Joystickm_instance = NULL
static int m_refCount = 0

Classes

class  PrivateData

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

Generated by  Doxygen 1.6.0   Back to index