Skip to main content

IGameInput::GetTemporalReading

已淘汰。 此方法已在 GameInput v1 中移除,目前的 API 中無法使用。
取得內插至指定時間點的輸入讀數。

語法

參數

targetTime   _In_
類型:uint64_t
目標時間戳記,以微秒為單位。使用 IGameInput::GetCurrentTimestamp 取得目前時間。 windowSize   _In_
類型:uint64_t
targetTime 周圍的內插時間範圍大小,以微秒為單位。 inputKind   _In_
類型:GameInputKind
要擷取的輸入類型。 device   _In_opt_
類型:IGameInputDevice*
選用的篩選條件,可將結果限制為特定裝置。 reading   _COM_Outptr_
類型:IGameInputReading**
產生的內插讀數。

傳回值

類型:HRESULT 傳回 E_NOTIMPL,因為此方法在 v0 中從未實作。

備註

此方法用來擷取已內插至特定時間點的輸入讀數,適用於需要將輸入與特定畫面時間戳記建立關聯的應用程式。此方法已在 v1 中移除,作為簡化讀數模型的一部分。應用程式應改用 GetCurrentReading 或 GetNextReading / GetPreviousReading 來逐步瀏覽輸入串流。

版本歷程記錄

另請參閱

已淘汰的 GameInput API 成員
IGameInput::GetCurrentReading
IGameInput::GetCurrentTimestamp
IGameInput
Last modified on October 6, 2026