RawGameController.GetButtonLabel(Int32) 메서드

정의

지정된 단추의 단추 레이블을 검색합니다.

public:
 virtual GameControllerButtonLabel GetButtonLabel(int buttonIndex) = GetButtonLabel;
GameControllerButtonLabel GetButtonLabel(int const& buttonIndex);
public GameControllerButtonLabel GetButtonLabel(int buttonIndex);
function getButtonLabel(buttonIndex)
Public Function GetButtonLabel (buttonIndex As Integer) As GameControllerButtonLabel

매개 변수

buttonIndex
Int32

int

레이블을 검색할 단추입니다.

반환

지정된 단추의 레이블입니다. 단추 레이블이 비어 있거나 컨트롤러 단추에 대해 알려진 레이블이 없으면 없음 이 반환됩니다.

설명

ArcadeStick.GetButtonLabel과 같은 다른 클래스의 GetButtonLabel 멤버 함수와 달리 이 함수는 ArcadeStickButtons 또는 기타 열거형 값이 아닌 정수로 사용합니다. 이 정수는 원시 게임 컨트롤러의 단추 배열에 대한 인덱스입니다.

고유한 단추 배열을 만든 다음 RawGameController.GetCurrentReading을 사용하여 각 단추의 상태를 나타내는 값으로 채울 수 있습니다. 자세한 내용은 원시 게임 컨트롤러 를 참조하세요.

적용 대상

추가 정보