IGameInputReading과 연결된 장치를 가져옵니다.
구문
void GetDevice(
IGameInputDevice** device
);
매개 변수
device _Outptr_
형식: IGameInputDevice**
IGameInputReading과 연결된 장치입니다.
반환 값
형식: void
비고
이 메서드를 사용하여 디바이스의 구성 요소 및 해당 기능에 대한 정보를 얻을 수 있습니다. 예를 들어 장치의 버튼, 배열 및 축 수를 알아야 할 수 있습니다. IGameInputReading::GetGamepadState와 같이 개발자가 만든 버퍼가 필요한 여러 Get*State 함수에 적합한 크기의 버퍼를 전달할 때는 이 기능이 중요합니다.
요구 사항
헤더: GameInput.h
라이브러리: gameinput.lib
지원되는 플랫폼: Windows
참고 항목
입력 API 개요
IGameInputReading
IGameInputReading::GetGamepadState