GameInputString

描述一个字符串,其中包含有关输入设备的信息。

语法

typedef struct GameInputString {  
    uint32_t sizeInBytes;  
    uint32_t codePointCount;  
    char const * data;  
} GameInputString  

成员

sizeInBytes

类型:uint32_t

字符串的字节大小(不是字符)。

codePointCount
类型:uint32_t

字符串中的 Unicode 码位的计数。

data
类型:char const *

指向字符串的指针,该字符串存储为 UTF-8 编码的 Unicode 字符串。

备注

sizeInBytes 成员可实现字符串数据的快速原始内存副本,而无需了解每个码位的大小。

此结构在以下命令中使用:

若要获取有关输入设备的信息,请使用 GetDeviceInfo 方法。

有关详细信息,请参阅 GameInput 设备

要求

头文件:GameInput.h

支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机

另请参阅

输入 API 概述
GameInput