#include <JoystickDevice.h>
Inheritance diagram for Lamp::JoystickDevice:
Public Member Functions | |
virtual const JoystickState & | getJoystickState () const |
ジョイスティックステートの取得 | |
virtual String | toString () const |
文字列への変換 | |
virtual bool | hasXAxis () const |
X軸を持つか. | |
virtual bool | hasYAxis () const |
Y軸を持つか. | |
virtual bool | hasZAxis () const |
Z軸を持つか. | |
virtual bool | hasXRotation () const |
X回転を持つか. | |
virtual bool | hasYRotation () const |
Y回転を持つか. | |
virtual bool | hasZRotation () const |
Z回転を持つか. | |
virtual int | getPOVCount () const |
視点コントローラ数の取得 | |
virtual int | getSliderCount () const |
スライダ数の取得 | |
Static Public Member Functions | |
int __stdcall | joystickObjectEnumeration (const DIDEVICEOBJECTINSTANCE *instance, void *userData) |
ジョイスティックオブジェクトの列挙コールバック | |
Static Public Attributes | |
const int | maxPOVCount = JoystickState::maxPOVCount |
最大視点コントローラ数 | |
const int | maxSliderCount = JoystickState::maxSliderCount |
最大スライダ数 | |
const int | maxButtonCount = JoystickState::maxButtonCount |
最大ボタン数 | |
const int | maxAxisValue = JoystickState::maxAxisValue |
軸データ最大値 | |
const int | minAxisValue = JoystickState::minAxisValue |
軸データ最小値 | |
const int | maxPOVValue = JoystickState::maxPOVValue |
視点コントローラ最大値 | |
Protected Member Functions | |
JoystickDevice () | |
コンストラクタ | |
virtual | ~JoystickDevice () |
デストラクタ | |
virtual bool | initialize (DirectInputDevice *inputDevice, HWND windowHandle) |
初期化 | |
virtual bool | checkJoystickObject (const DIDEVICEOBJECTINSTANCE *instance) |
ジョイスティックオブジェクトのチェック | |
virtual bool | polling () |
ポーリング | |
Friends | |
class | LampInput |
class | BufferedInput |
Definition at line 37 of file JoystickDevice.h.
|
ジョイスティックオブジェクトのチェック
Definition at line 71 of file JoystickDevice.cpp. References DirectXFailed, ErrorOut, Lamp::InputDevice::inputDevice_, maxAxisValue, and minAxisValue. Referenced by joystickObjectEnumeration(). |
|
ジョイスティックステートの取得
Definition at line 67 of file JoystickDevice.h. |
|
視点コントローラ数の取得
Reimplemented from Lamp::InputDevice. Definition at line 120 of file JoystickDevice.h. Referenced by Lamp::Joystick::getPOVCount(), and toString(). |
|
スライダ数の取得
Definition at line 126 of file JoystickDevice.h. Referenced by Lamp::Joystick::getAxisCountWithoutSlider(), Lamp::Joystick::getSliderCount(), and toString(). |
|
X軸を持つか.
Definition at line 82 of file JoystickDevice.h. Referenced by Lamp::Joystick::hasXAxis(), and toString(). |
|
X回転を持つか.
Definition at line 101 of file JoystickDevice.h. Referenced by Lamp::Joystick::hasXRotation(), and toString(). |
|
Y軸を持つか.
Definition at line 88 of file JoystickDevice.h. Referenced by Lamp::Joystick::hasYAxis(), and toString(). |
|
Y回転を持つか.
Definition at line 107 of file JoystickDevice.h. Referenced by Lamp::Joystick::hasYRotation(), and toString(). |
|
Z軸を持つか.
Definition at line 94 of file JoystickDevice.h. Referenced by Lamp::Joystick::hasZAxis(), and toString(). |
|
Z回転を持つか.
Definition at line 113 of file JoystickDevice.h. Referenced by Lamp::Joystick::hasZRotation(), and toString(). |
|
初期化
Reimplemented from Lamp::InputDevice. Definition at line 42 of file JoystickDevice.cpp. References DirectXFailed, ErrorOut, Lamp::InputDevice::isExclusive(), Lamp::InputDevice::isForeground(), joystickObjectEnumeration(), and Lamp::InputDevice::setCooperativeLevel(). Referenced by Lamp::LampInput::joystickEnumeration(). |
|
ジョイスティックオブジェクトの列挙コールバック ユーザはこのメソッドを呼び出さないで下さい
Definition at line 63 of file JoystickDevice.cpp. References checkJoystickObject(). Referenced by initialize(). |
|
ポーリング
Reimplemented from Lamp::InputDevice. Definition at line 131 of file JoystickDevice.cpp. References Lamp::InputDevice::acquire(), Lamp::JoystickState::clear(), DirectXSucceeded, ErrorOut, Lamp::InputDevice::inputDevice_, maxButtonCount, maxPOVCount, maxSliderCount, Lamp::JoystickState::setButtonPressed(), Lamp::JoystickState::setPOV(), Lamp::JoystickState::setSlider(), Lamp::JoystickState::setXAxis(), Lamp::JoystickState::setXRotation(), Lamp::JoystickState::setYAxis(), Lamp::JoystickState::setYRotation(), Lamp::JoystickState::setZAxis(), and Lamp::JoystickState::setZRotation(). |
|
文字列への変換
Reimplemented from Lamp::InputDevice. Definition at line 171 of file JoystickDevice.cpp. References Lamp::String::format(), Lamp::InputDevice::getInputDeviceString(), getPOVCount(), getSliderCount(), hasXAxis(), hasXRotation(), hasYAxis(), hasYRotation(), hasZAxis(), hasZRotation(), and Lamp::JoystickState::toString(). |