跳轉到主要內容

IGameInputReading::GetDevice

取得與 IGameInputReading 相關聯的裝置。

語法

參數

device   _Outptr_
類型:IGameInputDevice**
與 IGameInputReading 相關聯的裝置

傳回值

類型:void

備註

使用此方法來取得裝置組成及其功能的相關資訊。例如,您可能需要知道裝置上的按鈕、陣列和軸的數目。當您需要為許多 Get*State 函式 (例如需要開發人員建立之緩衝區的 IGameInputReading::GetGamepadState) 傳入適當大小的緩衝區時,這點非常重要。

需求

標頭: GameInput.h 輸入 API 概觀
IGameInputReading
IGameInputReading::GetGamepadState

版本歷程記錄

最後修改於 2026年10月6日