#include <Win32JoyStick.h>
Public Member Functions | |
| Win32JoyStick (InputManager *creator, IDirectInput8 *pDI, bool buffered, DWORD coopSettings, const JoyStickInfo &info) | |
| virtual | ~Win32JoyStick () |
| virtual void | setBuffered (bool buffered) |
| virtual void | capture () |
| virtual Interface * | queryInterface (Interface::IType type) |
| virtual void | _initialize () |
| JoyStickInfo | _getJoyInfo () |
Protected Member Functions | |
| Win32JoyStick () | |
| void | _enumerate () |
| Enumerates all things. | |
| bool | _doButtonClick (int button, DIDEVICEOBJECTDATA &di) |
| bool | _changePOV (int pov, DIDEVICEOBJECTDATA &di) |
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 | |
| IDirectInput8 * | mDirectInput |
| IDirectInputDevice8 * | mJoyStick |
| DWORD | coopSetting |
| GUID | deviceGuid |
| Win32ForceFeedback * | ff_device |
| A force feedback device. | |
| int | _AxisNumber |
| Mapping. | |
Definition at line 31 of file Win32JoyStick.h.
| Win32JoyStick::Win32JoyStick | ( | InputManager * | creator, | |
| IDirectInput8 * | pDI, | |||
| bool | buffered, | |||
| DWORD | coopSettings, | |||
| const JoyStickInfo & | info | |||
| ) |
Definition at line 35 of file Win32JoyStick.cpp.
References coopSetting, deviceGuid, OIS::JoyStickInfo::deviceID, OIS::JoyStickInfo::devId, ff_device, OIS::JoyStick::listener, OIS::Object::mBuffered, OIS::Object::mCreator, OIS::Object::mDevID, mDirectInput, mJoyStick, OIS::Object::mType, OIS::Object::mVendor, OISJoyStick, and OIS::JoyStickInfo::vendor.
| Win32JoyStick::~Win32JoyStick | ( | ) | [virtual] |
| OIS::Win32JoyStick::Win32JoyStick | ( | ) | [inline, protected] |
Definition at line 56 of file Win32JoyStick.h.
| void Win32JoyStick::setBuffered | ( | bool | buffered | ) | [virtual] |
Implements OIS::Object.
Definition at line 362 of file Copy of Win32JoyStick.cpp.
References _initialize(), OIS::Object::mBuffered, and mJoyStick.
| void Win32JoyStick::capture | ( | ) | [virtual] |
Implements OIS::Object.
Definition at line 127 of file Copy of Win32JoyStick.cpp.
References OIS::Object::mBuffered.
Referenced by _initialize().
| Interface * Win32JoyStick::queryInterface | ( | Interface::IType | type | ) | [virtual] |
| type | The type of interface you are looking for |
Implements OIS::Object.
Definition at line 392 of file Win32JoyStick.cpp.
References ff_device, and OIS::Interface::ForceFeedback.
| void Win32JoyStick::_initialize | ( | ) | [virtual] |
Implements OIS::Object.
Definition at line 58 of file Copy of Win32JoyStick.cpp.
References _enumerate(), capture(), OIS::JoyStickState::clear(), coopSetting, deviceGuid, OIS::Object::mBuffered, mDirectInput, mJoyStick, OIS::JoyStick::mState, and OIS_EXCEPT.
Referenced by setBuffered().
| JoyStickInfo Win32JoyStick::_getJoyInfo | ( | ) |
Definition at line 379 of file Copy of Win32JoyStick.cpp.
References deviceGuid, OIS::JoyStickInfo::deviceID, OIS::JoyStickInfo::devId, OIS::Object::mDevID, OIS::Object::mVendor, and OIS::JoyStickInfo::vendor.
| void Win32JoyStick::_enumerate | ( | ) | [protected] |
Enumerates all things.
Definition at line 93 of file Copy of Win32JoyStick.cpp.
References mJoyStick, OIS::JoyStick::numAxes, and OIS::JoyStick::numButtons.
Referenced by _initialize().
| BOOL CALLBACK Win32JoyStick::DIEnumDeviceObjectsCallback | ( | LPCDIDEVICEOBJECTINSTANCE | lpddoi, | |
| LPVOID | pvRef | |||
| ) | [static, protected] |
Enumerate axis callback.
Definition at line 131 of file Win32JoyStick.cpp.
References _AxisNumber, ff_device, OIS::JoyStick::MAX_AXIS, OIS::JoyStick::MIN_AXIS, mJoyStick, and OIS_EXCEPT.
| BOOL CALLBACK Win32JoyStick::DIEnumEffectsCallback | ( | LPCDIEFFECTINFO | pdei, | |
| LPVOID | pvRef | |||
| ) | [static, protected] |
Enumerate Force Feedback callback.
Definition at line 173 of file Win32JoyStick.cpp.
References OIS::Win32ForceFeedback::_addEffectSupport(), ff_device, and mJoyStick.
| bool Win32JoyStick::_doButtonClick | ( | int | button, | |
| DIDEVICEOBJECTDATA & | di | |||
| ) | [protected] |
Definition at line 331 of file Copy of Win32JoyStick.cpp.
References OIS::JoyStickListener::buttonPressed(), OIS::JoyStickListener::buttonReleased(), OIS::JoyStickState::buttons, OIS::JoyStick::listener, and OIS::JoyStick::mState.
| bool Win32JoyStick::_changePOV | ( | int | pov, | |
| DIDEVICEOBJECTDATA & | di | |||
| ) | [protected] |
Definition at line 351 of file Copy of Win32JoyStick.cpp.
References OIS::JoyStick::listener, OIS::JoyStickState::mPOV, OIS::JoyStick::mState, and OIS::JoyStickListener::povMoved().
IDirectInput8* OIS::Win32JoyStick::mDirectInput [protected] |
IDirectInputDevice8* OIS::Win32JoyStick::mJoyStick [protected] |
Definition at line 68 of file Win32JoyStick.h.
Referenced by _enumerate(), _initialize(), DIEnumDeviceObjectsCallback(), DIEnumEffectsCallback(), setBuffered(), Win32JoyStick(), and ~Win32JoyStick().
DWORD OIS::Win32JoyStick::coopSetting [protected] |
GUID OIS::Win32JoyStick::deviceGuid [protected] |
Definition at line 70 of file Win32JoyStick.h.
Referenced by _getJoyInfo(), _initialize(), and Win32JoyStick().
Win32ForceFeedback* OIS::Win32JoyStick::ff_device [protected] |
A force feedback device.
Definition at line 73 of file Win32JoyStick.h.
Referenced by DIEnumDeviceObjectsCallback(), DIEnumEffectsCallback(), queryInterface(), and Win32JoyStick().
int OIS::Win32JoyStick::_AxisNumber [protected] |
Mapping.
Definition at line 76 of file Win32JoyStick.h.
Referenced by DIEnumDeviceObjectsCallback().
1.5.4