Skip to content

Request to Define Encoding for Multibyte Strings in GameInput API #109

@radian-jp

Description

@radian-jp

I’ve been working with the GameInputDeviceInfo structure and noticed that in version 3, the displayName field has been changed to const char*, whereas earlier versions (e.g., v0) used GameInputString, which explicitly defined UTF-8 encoding.

GameInputDeviceInfo (v0)

GameInputDeviceInfo

Currently, the documentation for v3 does not specify the character encoding of displayName, nor does it clarify the encoding for other members that may contain multibyte characters. This ambiguity makes it difficult to reliably handle string data, especially for UI display and localization.

In my testing, the data appears to be UTF-8 encoded, but without official documentation, it's risky to assume consistent behavior across devices and platforms.

I would like to request that the character encoding be clearly defined and documented for all API members that may contain multibyte strings, not just displayName. Standardizing on UTF-8 would be ideal, as it simplifies handling and ensures compatibility across languages and systems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gameinputRelated to GameInput API

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions