Skip to main content

GameInputString

已淘汰。 此結構已在 GameInput v1 中移除,目前的 API 中無法使用。
代表 GameInput 結構中用於裝置識別欄位的字串值。

語法

成員

sizeInBytes
類型:uint32_t
字串資料的大小 (以位元組為單位),不包括 null 結束字元。 codePointCount
類型:uint32_t
字串中的 Unicode 字碼指標數目。 data
類型:const char*
指向以 UTF-8 編碼之字串資料的指標。不一定以 null 結束。

備註

此類型用於 v0 GameInputDeviceInfo 結構中的字串欄位 (例如 displayName、deviceFamily 和 hardwareVersion)。當這些字串欄位從 GameInputDeviceInfo 中移除時,此類型也在 v1 中一併移除。

版本歷程記錄

另請參閱

已淘汰的 GameInput API 成員
Last modified on October 6, 2026