#include <KeyboardState.h>
Inheritance diagram for Lamp::KeyboardState:
Public Member Functions | |
KeyboardState () | |
コンストラクタ | |
virtual | ~KeyboardState () |
デストラクタ | |
virtual void | clear () |
クリア | |
virtual void | setKeyPressed (Key key, bool pressed) |
キーの設定 | |
virtual bool | keyPressed (Key key) const |
キーが押されているか | |
virtual String | toString () const |
文字列への変換 | |
virtual void | writeBinary (BinaryWriter *binaryWriter) const |
バイナリ書き出し | |
virtual void | readBinary (BinaryReader *binaryReader) |
バイナリ読み込み |
Definition at line 39 of file KeyboardState.h.
|
キーが押されているか
Definition at line 74 of file KeyboardState.h. References Assert, and Lamp::KeyboardKey::maxKeyCount. Referenced by Lamp::Keyboard::down(), Lamp::Keyboard::pressed(), toString(), Lamp::Keyboard::up(), and writeBinary(). |
|
バイナリ読み込み
Definition at line 46 of file KeyboardState.cpp. References Lamp::KeyboardKey::Key, Lamp::KeyboardKey::maxKeyCount, Lamp::BinaryReader::readUChar(), setKeyPressed(), and u_char. |
|
キーの設定
Definition at line 64 of file KeyboardState.h. References Assert, and Lamp::KeyboardKey::maxKeyCount. Referenced by Lamp::KeyboardDevice::polling(), and readBinary(). |
|
文字列への変換
Definition at line 84 of file KeyboardState.h. References Lamp::KeyboardKey::Key, keyPressed(), Lamp::KeyboardKey::keyToString(), and Lamp::KeyboardKey::maxKeyCount. Referenced by Lamp::KeyboardDevice::toString(). |
|
バイナリ書き出し
Definition at line 34 of file KeyboardState.cpp. References Lamp::KeyboardKey::Key, keyPressed(), Lamp::KeyboardKey::maxKeyCount, u_char, and Lamp::BinaryWriter::writeUChar(). |