#include <MouseState.h>
Public Member Functions | |
| MouseState () | |
| コンストラクタ | |
| virtual | ~MouseState () |
| デストラクタ | |
| 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 | 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 | maxButtonCount = 8 |
| 最大ボタン数 | |
Friends | |
| class | MouseDevice |
Definition at line 37 of file MouseState.h.
|
|
ボタンが押されているか
Definition at line 115 of file MouseState.h. References Assert, and maxButtonCount. Referenced by Lamp::Mouse::buttonDown(), Lamp::Mouse::buttonPressed(), Lamp::Mouse::buttonUp(), toString(), and writeBinary(). |
|
|
X軸の取得.
Definition at line 73 of file MouseState.h. Referenced by Lamp::Mouse::getXAxis(), toString(), and writeBinary(). |
|
|
Y軸の取得.
Definition at line 85 of file MouseState.h. Referenced by Lamp::Mouse::getYAxis(), toString(), and writeBinary(). |
|
|
Z軸の取得.
Definition at line 97 of file MouseState.h. Referenced by Lamp::Mouse::getZAxis(), toString(), and writeBinary(). |
|
|
バイナリ読み込み
Definition at line 49 of file MouseState.cpp. References Lamp::BitSet< Type >::getIndexedBit(), maxButtonCount, Lamp::BinaryReader::readShort(), Lamp::BinaryReader::readUChar(), setButtonPressed(), setXAxis(), setYAxis(), and setZAxis(). |
|
||||||||||||
|
ボタンの設定
Definition at line 105 of file MouseState.h. References Assert, and maxButtonCount. Referenced by Lamp::MouseDevice::polling(), and readBinary(). |
|
|
X軸の設定.
Definition at line 67 of file MouseState.h. Referenced by Lamp::MouseDevice::polling(), and readBinary(). |
|
|
Y軸の設定.
Definition at line 79 of file MouseState.h. Referenced by Lamp::MouseDevice::polling(), and readBinary(). |
|
|
Z軸の設定.
Definition at line 91 of file MouseState.h. Referenced by Lamp::MouseDevice::polling(), and readBinary(). |
|
|
文字列への変換
Definition at line 125 of file MouseState.h. References buttonPressed(), Lamp::String::format(), getXAxis(), getYAxis(), and getZAxis(). Referenced by Lamp::MouseDevice::toString(). |
|
|
バイナリ書き出し
Definition at line 34 of file MouseState.cpp. References Assert, buttonPressed(), Lamp::BitSet< Type >::getBits(), getXAxis(), getYAxis(), getZAxis(), maxButtonCount, Lamp::BitSet< Type >::setIndexedBit(), Lamp::BinaryWriter::writeShort(), and Lamp::BinaryWriter::writeUChar(). |
1.3.2