#include <JoystickState.h>
Public Member Functions | |
JoystickState () | |
コンストラクタ | |
virtual | ~JoystickState () |
デストラクタ | |
virtual void | clear () |
クリア | |
virtual void | setXAxis (int xAxis) |
X軸の設定. | |
virtual int | getXAxis () const |
X軸の取得. | |
virtual void | setYAxis (int yAxis) |
Y軸の設定. | |
virtual int | getYAxis () const |
Y軸の取得. | |
virtual void | setZAxis (int zAxis) |
Z軸の設定. | |
virtual int | getZAxis () const |
Z軸の取得. | |
virtual void | setXRotation (int xRotation) |
X回転の設定. | |
virtual int | getXRotation () const |
X回転の取得. | |
virtual void | setYRotation (int yRotation) |
Y回転の設定. | |
virtual int | getYRotation () const |
Y回転の取得. | |
virtual void | setZRotation (int zRotation) |
Z回転の設定. | |
virtual int | getZRotation () const |
Z回転の取得. | |
virtual void | setPOV (int id, int pov) |
視点コントローラ値の設定 | |
virtual int | getPOV (int id) const |
視点コントローラ値の取得 | |
virtual void | setSlider (int id, int slider) |
スライダ値の設定 | |
virtual int | getSlider (int id) const |
スライダ値の取得 | |
virtual void | setButtonPressed (int id, bool pressed) |
ボタンの設定 | |
virtual bool | buttonPressed (int id) const |
ボタンが押されているか | |
virtual String | toString () const |
文字列への変換 | |
virtual void | writeBinary (BinaryWriter *binaryWriter) const |
バイナリ書き出し | |
virtual void | readBinary (BinaryReader *binaryReader) |
バイナリ読み込み | |
Static Public Attributes | |
const int | maxPOVCount = 4 |
最大視点コントローラ数 | |
const int | maxSliderCount = 2 |
最大スライダ数 | |
const int | maxButtonCount = 32 |
最大ボタン数 | |
const int | maxAxisValue = 10000 |
軸データ最大値 | |
const int | minAxisValue = -10000 |
軸データ最小値 | |
const int | maxPOVValue = 36000 |
視点コントローラ最大値 |
Definition at line 37 of file JoystickState.h.
|
ボタンが押されているか
Definition at line 211 of file JoystickState.h. References Assert, and maxButtonCount. Referenced by Lamp::Joystick::buttonDown(), Lamp::Joystick::buttonPressed(), Lamp::Joystick::buttonUp(), toString(), and writeBinary(). |
|
視点コントローラ値の取得
Definition at line 169 of file JoystickState.h. References Assert, and maxPOVCount. Referenced by Lamp::Joystick::getPOV(), Lamp::Joystick::getPrePOV(), Lamp::Joystick::isPOVCenter(), toString(), and writeBinary(). |
|
スライダ値の取得
Definition at line 190 of file JoystickState.h. References Assert, and maxSliderCount. Referenced by Lamp::Joystick::getSlider(), toString(), and writeBinary(). |
|
X軸の取得.
Definition at line 90 of file JoystickState.h. Referenced by Lamp::Joystick::getPreXAxis(), Lamp::Joystick::getXAxis(), toString(), and writeBinary(). |
|
X回転の取得.
Definition at line 127 of file JoystickState.h. Referenced by Lamp::Joystick::getPreXRotation(), Lamp::Joystick::getXRotation(), toString(), and writeBinary(). |
|
Y軸の取得.
Definition at line 102 of file JoystickState.h. Referenced by Lamp::Joystick::getPreYAxis(), Lamp::Joystick::getYAxis(), toString(), and writeBinary(). |
|
Y回転の取得.
Definition at line 139 of file JoystickState.h. Referenced by Lamp::Joystick::getPreYRotation(), Lamp::Joystick::getYRotation(), toString(), and writeBinary(). |
|
Z軸の取得.
Definition at line 114 of file JoystickState.h. Referenced by Lamp::Joystick::getPreZAxis(), Lamp::Joystick::getZAxis(), toString(), and writeBinary(). |
|
Z回転の取得.
Definition at line 151 of file JoystickState.h. Referenced by Lamp::Joystick::getPreZRotation(), Lamp::Joystick::getZRotation(), toString(), and writeBinary(). |
|
バイナリ読み込み
Definition at line 61 of file JoystickState.cpp. References Lamp::BitSet< Type >::getIndexedBit(), maxButtonCount, maxPOVCount, maxSliderCount, Lamp::BinaryReader::readInt(), Lamp::BinaryReader::readShort(), Lamp::BinaryReader::readUInt(), setButtonPressed(), setPOV(), setSlider(), setXAxis(), setXRotation(), setYAxis(), setYRotation(), setZAxis(), and setZRotation(). |
|
ボタンの設定
Definition at line 201 of file JoystickState.h. References Assert, and maxButtonCount. Referenced by Lamp::JoystickDevice::polling(), and readBinary(). |
|
視点コントローラ値の設定
Definition at line 159 of file JoystickState.h. References Assert, and maxPOVCount. Referenced by Lamp::JoystickDevice::polling(), and readBinary(). |
|
スライダ値の設定
Definition at line 180 of file JoystickState.h. References Assert, and maxSliderCount. Referenced by Lamp::JoystickDevice::polling(), and readBinary(). |
|
X軸の設定.
Definition at line 84 of file JoystickState.h. Referenced by Lamp::JoystickDevice::polling(), and readBinary(). |
|
X回転の設定.
Definition at line 121 of file JoystickState.h. Referenced by Lamp::JoystickDevice::polling(), and readBinary(). |
|
Y軸の設定.
Definition at line 96 of file JoystickState.h. Referenced by Lamp::JoystickDevice::polling(), and readBinary(). |
|
Y回転の設定.
Definition at line 133 of file JoystickState.h. Referenced by Lamp::JoystickDevice::polling(), and readBinary(). |
|
Z軸の設定.
Definition at line 108 of file JoystickState.h. Referenced by Lamp::JoystickDevice::polling(), and readBinary(). |
|
Z回転の設定.
Definition at line 145 of file JoystickState.h. Referenced by Lamp::JoystickDevice::polling(), and readBinary(). |
|
文字列への変換
Definition at line 221 of file JoystickState.h. References buttonPressed(), Lamp::String::format(), getPOV(), getSlider(), getXAxis(), getXRotation(), getYAxis(), getYRotation(), getZAxis(), and getZRotation(). Referenced by Lamp::JoystickDevice::toString(). |
|
バイナリ書き出し
Definition at line 34 of file JoystickState.cpp. References Assert, buttonPressed(), Lamp::BitSet< Type >::getBits(), getPOV(), getSlider(), getXAxis(), getXRotation(), getYAxis(), getYRotation(), getZAxis(), getZRotation(), maxButtonCount, maxPOVCount, maxSliderCount, Lamp::BitSet< Type >::setIndexedBit(), Lamp::BinaryWriter::writeInt(), Lamp::BinaryWriter::writeShort(), and Lamp::BinaryWriter::writeUInt(). |