CrossFramework Library

クラス XBase::Keyboard

#include <XBase/Keyboard.hpp>


キーボード。

マスターとなるキーボードは HID が所持しています。

キーボードのコピーをアプリケーションが持つことによって 「ポーズ中はキー情報を更新しないキーボード」といった 特殊なキーボードを作成することができます。

すべてのメンバ一覧

コンストラクタとデストラクタ
 Keyboard ()
 何も押されていない状態のキーボードを作成。
更新
void update (const KeyboardUpdateData &aData)
 状態を更新する。
const KeyboardUpdateData lastUpdateData () const
 前回の更新データを取得する。
状態取得
bool isHold (KeyKind aKind) const
 押されているか。
bool isTrigger (KeyKind aKind) const
 押された瞬間か。
bool isRepeat (KeyKind aKind) const
 押しっぱなしの状態で入力が入ったか。
bool isPulse (KeyKind aKind) const
 isTrigger() || isRepeat()
bool isRelease (KeyKind aKind) const
 離された瞬間か。
ビットセット取得
const KeyBitSet hold () const
 isHold() のビットセット。
const KeyBitSet trigger () const
 isTrigger() のビットセット。
const KeyBitSet repeat () const
 isRepeat() のビットセット。
const KeyBitSet pulse () const
 isPulse() のビットセット。
const KeyBitSet release () const
 isRelease() のビットセット。
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義