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

쿼리하는 형식의 스위치의 원시 게임 컨트롤러 스위치 배열에 있는 인덱스입니다.

반환

원시 게임 컨트롤러에서 지정된 스위치의 유형입니다.

설명

이 함수는 쿼리하려는 스위치를 가리키는 원시 게임 컨트롤러의 스위치 배열에 있는 인덱스인 정수(integer)를 사용합니다. 고유한 스위치 배열을 만든 다음 RawGameController.GetCurrentReading을 사용하여 각 스위치의 상태를 나타내는 값으로 채울 수 있습니다. 자세한 내용은 원시 게임 컨트롤러 를 참조하세요.

적용 대상

추가 정보