OIS::Win32JoyStick Class Reference

#include <src/ois/win32/Win32JoyStick.h>

Inheritance diagram for OIS::Win32JoyStick:

OIS::JoyStick OIS::Object

List of all members.

Public Member Functions

virtual void _initialize ()
virtual void capture ()
virtual InterfacequeryInterface (Interface::IType type)
virtual void setBuffered (bool buffered)
 Win32JoyStick (InputManager *creator, IDirectInput8 *pDI, bool buffered, DWORD coopSettings, const JoyStickInfo &info)
virtual ~Win32JoyStick ()

Protected Member Functions

bool _changePOV (int pov, DIDEVICEOBJECTDATA &di)
bool _doButtonClick (int button, DIDEVICEOBJECTDATA &di)
void _enumerate ()
 Enumerates all things.

Static Protected Member Functions

static BOOL CALLBACK DIEnumDeviceObjectsCallback (LPCDIDEVICEOBJECTINSTANCE lpddoi, LPVOID pvRef)
 Enumerate axis callback.
static BOOL CALLBACK DIEnumEffectsCallback (LPCDIEFFECTINFO pdei, LPVOID pvRef)
 Enumerate Force Feedback callback.

Protected Attributes

int _AxisNumber
 Mapping.
DWORD coopSetting
GUID deviceGuid
Win32ForceFeedbackff_device
 A force feedback device.
IDirectInput8 * mDirectInput
IDirectInputDevice8 * mJoyStick


Constructor & Destructor Documentation

Win32JoyStick::Win32JoyStick ( InputManager creator,
IDirectInput8 *  pDI,
bool  buffered,
DWORD  coopSettings,
const JoyStickInfo info 
)

Win32JoyStick::~Win32JoyStick (  )  [virtual]


Member Function Documentation

bool Win32JoyStick::_changePOV ( int  pov,
DIDEVICEOBJECTDATA &  di 
) [protected]

bool Win32JoyStick::_doButtonClick ( int  button,
DIDEVICEOBJECTDATA &  di 
) [protected]

void Win32JoyStick::_enumerate (  )  [protected]

void Win32JoyStick::_initialize (  )  [virtual]

void Win32JoyStick::capture (  )  [virtual]

BOOL CALLBACK Win32JoyStick::DIEnumDeviceObjectsCallback ( LPCDIDEVICEOBJECTINSTANCE  lpddoi,
LPVOID  pvRef 
) [static, protected]

BOOL CALLBACK Win32JoyStick::DIEnumEffectsCallback ( LPCDIEFFECTINFO  pdei,
LPVOID  pvRef 
) [static, protected]

Enumerate Force Feedback callback.

References OIS::Win32ForceFeedback::_addEffectSupport(), ff_device, and mJoyStick.

Referenced by _enumerate().

Interface * Win32JoyStick::queryInterface ( Interface::IType  type  )  [virtual]

Remarks:
If available, get an interface to write to some devices. Examples include, turning on and off LEDs, ForceFeedback, etc
Parameters:
type The type of interface you are looking for

Implements OIS::Object.

References ff_device, and OIS::Interface::ForceFeedback.

void Win32JoyStick::setBuffered ( bool  buffered  )  [virtual]

Remarks:
Sets buffered mode

Implements OIS::Object.

References OIS::Object::mBuffered.


Member Data Documentation

Mapping.

Referenced by _enumerate(), and DIEnumDeviceObjectsCallback().

Referenced by _initialize(), and Win32JoyStick().

IDirectInput8* OIS::Win32JoyStick::mDirectInput [protected]

Referenced by _initialize(), and Win32JoyStick().

IDirectInputDevice8* OIS::Win32JoyStick::mJoyStick [protected]


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

Generated on Tue Jul 28 16:22:19 2009 for Orxonox by  doxygen 1.5.6