ゲームパッドインターフェース
More...
#include <IGamepad.h>
virtual Mix::HID::IGamepad::~IGamepad |
( |
void |
| ) |
|
|
inlineprotectedvirtual |
virtual UInt32 Mix::HID::IGamepad::GetButtonState |
( |
UInt32 |
index | ) |
const |
|
pure virtual |
virtual Float32 Mix::HID::IGamepad::GetTriggerState |
( |
UInt32 |
index | ) |
const |
|
pure virtual |
トリガーの状態を取得します
- Parameters
-
- Returns
- トリガーの状態を( 0.0f〜1.0f )を返します
スティックの状態を取得します
- Parameters
-
- Returns
- スティックの状態を表す Mix::Vector2 クラスを返します
virtual Boolean Mix::HID::IGamepad::IsAvailable |
( |
void |
| ) |
const |
|
pure virtual |
このインターフェースが利用可能などうかを確認します
- Returns
- このインターフェースが利用可能な場合は True を返します
virtual UInt8 Mix::HID::IGamepad::GetSourceButtonValue |
( |
UInt32 |
index | ) |
const |
|
pure virtual |
割り当てるソースのボタンの値を取得します( DirectInput )
- Parameters
-
[in] | index | ボタンのインデックス( 0〜31 ) |
- Returns
- ボタンの値を返します。
- Note
- 0 以上でボタンが押されていることになります。
ボタンの割り当て ( SetButtonAssignment ) の際のヘルパーとしてお使いください。
virtual UInt32 Mix::HID::IGamepad::GetSourcePovValue |
( |
UInt32 |
index | ) |
const |
|
pure virtual |
割り当てるソースの POV の値を取得します( DirectInput )
- Parameters
-
[in] | index | POV のインデックス( 0〜7 ) |
- Returns
- POV の値を返します。
- Note
- 0 以上で POV が押されていることになります。
ボタンの割り当て ( SetButtonAssignment ) の際のヘルパーとしてお使いください。
virtual void Mix::HID::IGamepad::SetButtonAssignment |
( |
UInt32 |
targetIndex, |
|
|
UInt32 |
sourceIndex |
|
) |
| |
|
pure virtual |
ボタンの割り当てを設定します( DirectInput )
- Parameters
-
virtual UInt32 Mix::HID::IGamepad::GetButtonAssignment |
( |
UInt32 |
targetIndex | ) |
const |
|
pure virtual |
ボタンの割り当て元を取得します( DirectInput )
- Parameters
-
- Returns
- ボタンの割り当て元を返します
- Note
- ボタンの割り当てが無効( XInput )、もしくわ targetIndex が範囲を超えている場合は 0xFFFFFFFF を返します
virtual void Mix::HID::IGamepad::SetTriggerAssignment |
( |
UInt32 |
targetIndex, |
|
|
UInt32 |
sourceIndex |
|
) |
| |
|
pure virtual |
トリガーの割り当てを設定します( DirectInput )
- Parameters
-
virtual UInt32 Mix::HID::IGamepad::GetTriggerAssignment |
( |
UInt32 |
targetIndex | ) |
const |
|
pure virtual |
トリガーの割り当て元ボタンを取得します( DirectInput )
- Parameters
-
- Returns
- トリガーの割り当て元ボタンを返します
- Note
- トリガーの割り当てが無効( XInput )、もしくわ targetIndex が範囲を超えている場合は 0xFFFFFFFF を返します
virtual void Mix::HID::IGamepad::SetTriggerThreshold |
( |
UInt32 |
index, |
|
|
UInt8 |
threshold |
|
) |
| |
|
pure virtual |
トリガーの閾値を設定します( XInput )
- Parameters
-
virtual UInt8 Mix::HID::IGamepad::GetTriggerThreshold |
( |
UInt32 |
index | ) |
const |
|
pure virtual |
virtual void Mix::HID::IGamepad::SetStickDeadZone |
( |
UInt32 |
index, |
|
|
Int16 |
deadZone |
|
) |
| |
|
pure virtual |
スティックのデッドゾーンを設定します
- Parameters
-
virtual Int16 Mix::HID::IGamepad::GetStickDeadZone |
( |
UInt32 |
index | ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: