GameInputString

Describes a string that contains information about an input device.

Syntax

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

Members

sizeInBytes

Type: uint32_t

Size of the string in bytes (not in characters).

codePointCount
Type: uint32_t

Count of Unicode code points in the string.

data
Type: char const *

Pointer to the string, which is stored as a UTF-8 encoded Unicode string.

Remarks

The sizeInBytes member enables fast raw memory copies of the string data without having to know the size of each code point.

This structure is used in the following structures:

To obtain information about an input device, use the GetDeviceInfo method.

For more information, see GameInput devices.

Requirements

Header: GameInput.h

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

Input API Overview
GameInput