Share via


RawGameController.GetSwitchKind(Int32) メソッド

定義

生のゲーム コントローラーで指定されたスイッチの種類を取得します。

public:
 virtual GameControllerSwitchKind GetSwitchKind(int switchIndex) = GetSwitchKind;
GameControllerSwitchKind GetSwitchKind(int const& switchIndex);
public GameControllerSwitchKind GetSwitchKind(int switchIndex);
function getSwitchKind(switchIndex)
Public Function GetSwitchKind (switchIndex As Integer) As GameControllerSwitchKind

パラメーター

switchIndex
Int32

int

クエリを実行している種類のスイッチの生ゲーム コントローラーのスイッチ配列内のインデックス。

戻り値

生のゲーム コントローラー上の特定のスイッチの種類。

注釈

この関数は整数を受け取ります。これは、クエリを実行するスイッチを指す生のゲーム コントローラーのスイッチ配列内のインデックスです。 独自のスイッチ配列を作成し、 RawGameController.GetCurrentReading を使用して各スイッチの状態を表す値を設定できます。 詳細については、 生のゲーム コントローラー に関するページを参照してください。

適用対象

こちらもご覧ください