#include <InputDevice.h>
Inheritance diagram for Lamp::InputDevice:

Public Member Functions | |
| InputDevice (bool exclusive) | |
| コンストラクタ | |
| virtual | ~InputDevice () |
| デストラクタ | |
| virtual bool | initialize (DirectInputDevice *inputDevice, HWND windowHandle) |
| 初期化 | |
| virtual bool | acquire () |
| アクセス権の取得 | |
| virtual void | unacquire () |
| アクセス権の解放 | |
| virtual bool | polling () |
| ポーリング | |
| virtual bool | setCooperativeLevel (bool exclusive, bool foreground) |
| 協調レベルの設定 | |
| virtual bool | isExclusive () const |
| 排他モードか | |
| virtual bool | isForeground () const |
| フォアグラウンドモードか | |
| virtual String | getProductName () const |
| プロダクト名の取得 | |
| virtual String | getInstanceName () const |
| インスタンス名の取得 | |
| virtual int | getAxisCount () const |
| 軸数の取得 | |
| virtual int | getButtonCount () const |
| ボタン数の取得 | |
| virtual int | getPOVCount () const |
| 視点コントローラ数の取得 | |
| virtual bool | isAttached () const |
| デバイスがアタッチされているか | |
| virtual bool | isPolled () const |
| ポーリングが必要か | |
| virtual String | toString () const |
| 文字列への変換 | |
| virtual String | getInputDeviceString () const |
| 入力デバイス文字列の取得 | |
Protected Member Functions | |
| virtual void | setExclusive (bool exclusive) |
| 排他モードの設定 | |
| virtual void | setForeground (bool foreground) |
| フォアグラウンドモードの設定 | |
Protected Attributes | |
| DirectInputDevice * | inputDevice_ |
| 入力デバイス | |
| HWND | windowHandle_ |
| ウィンドウハンドル | |
Definition at line 34 of file InputDevice.h.
|
|
コンストラクタ
Definition at line 41 of file InputDevice.h. References inputDevice_, NULL, and windowHandle_. |
|
|
アクセス権の取得
Definition at line 85 of file InputDevice.h. References Assert, DirectXSucceeded, ErrorOut, and inputDevice_. Referenced by Lamp::MouseDevice::polling(), Lamp::KeyboardDevice::polling(), Lamp::JoystickDevice::polling(), and setCooperativeLevel(). |
|
|
軸数の取得
Definition at line 175 of file InputDevice.h. Referenced by Lamp::Joystick::getAxisCount(), Lamp::Joystick::getAxisCountWithoutSlider(), getInputDeviceString(), and Lamp::MouseDevice::initialize(). |
|
|
ボタン数の取得
Definition at line 181 of file InputDevice.h. Referenced by Lamp::Mouse::getButtonCount(), Lamp::Joystick::getButtonCount(), getInputDeviceString(), and Lamp::Keyboard::getKeyCount(). |
|
|
入力デバイス文字列の取得
Definition at line 216 of file InputDevice.h. References Assert, Lamp::String::format(), getAxisCount(), getButtonCount(), getInstanceName(), getPOVCount(), getProductName(), isAttached(), and isPolled(). Referenced by Lamp::MouseDevice::toString(), Lamp::KeyboardDevice::toString(), Lamp::JoystickDevice::toString(), and toString(). |
|
|
インスタンス名の取得
Definition at line 167 of file InputDevice.h. Referenced by getInputDeviceString(). |
|
|
視点コントローラ数の取得
Reimplemented in Lamp::JoystickDevice. Definition at line 187 of file InputDevice.h. Referenced by getInputDeviceString(). |
|
|
プロダクト名の取得
Definition at line 159 of file InputDevice.h. Referenced by getInputDeviceString(), Lamp::Mouse::getName(), Lamp::Keyboard::getName(), and Lamp::Joystick::getName(). |
|
||||||||||||
|
初期化
Reimplemented in Lamp::JoystickDevice, Lamp::KeyboardDevice, and Lamp::MouseDevice. Definition at line 57 of file InputDevice.h. References Assert, DirectXFailed, ErrorOut, inputDevice_, NULL, and windowHandle_. |
|
|
デバイスがアタッチされているか
Definition at line 193 of file InputDevice.h. Referenced by getInputDeviceString(), Lamp::MouseDevice::initialize(), Lamp::Mouse::isAttached(), Lamp::Keyboard::isAttached(), and Lamp::Joystick::isAttached(). |
|
|
排他モードか
Definition at line 146 of file InputDevice.h. Referenced by Lamp::MouseDevice::initialize(), Lamp::KeyboardDevice::initialize(), Lamp::JoystickDevice::initialize(), Lamp::Mouse::isExclusive(), Lamp::Keyboard::isExclusive(), and Lamp::Joystick::isExclusive(). |
|
|
フォアグラウンドモードか
Definition at line 152 of file InputDevice.h. Referenced by Lamp::MouseDevice::initialize(), Lamp::KeyboardDevice::initialize(), Lamp::JoystickDevice::initialize(), Lamp::Mouse::isForeground(), Lamp::Keyboard::isForeground(), and Lamp::Joystick::isForeground(). |
|
|
ポーリングが必要か
Definition at line 201 of file InputDevice.h. Referenced by getInputDeviceString(), Lamp::Mouse::isPolled(), Lamp::Keyboard::isPolled(), Lamp::Joystick::isPolled(), and polling(). |
|
|
ポーリング
Reimplemented in Lamp::JoystickDevice, Lamp::KeyboardDevice, and Lamp::MouseDevice. Definition at line 108 of file InputDevice.h. References inputDevice_, and isPolled(). |
|
||||||||||||
|
協調レベルの設定
Reimplemented in Lamp::KeyboardDevice, and Lamp::MouseDevice. Definition at line 120 of file InputDevice.h. References acquire(), DirectXFailed, ErrorOut, inputDevice_, NULL, u_int, unacquire(), and windowHandle_. Referenced by Lamp::JoystickDevice::initialize(), and Lamp::Joystick::setCooperativeLevel(). |
|
|
排他モードの設定
Definition at line 234 of file InputDevice.h. |
|
|
フォアグラウンドモードの設定
Definition at line 241 of file InputDevice.h. |
|
|
文字列への変換
Reimplemented in Lamp::JoystickDevice, Lamp::KeyboardDevice, and Lamp::MouseDevice. Definition at line 210 of file InputDevice.h. References getInputDeviceString(). |
1.3.2