libretro.drivers.user.driver

Protocol definition for the user driver interface.

See also

libretro.api.user

Provides the language and username types that UserDriver implementations supply.

Classes

UserDriver

Protocol for drivers that supply player identity information to the core.

class UserDriver[source]

Bases: Protocol

Protocol for drivers that supply player identity information to the core.

Cores query this information via RETRO_ENVIRONMENT_GET_USERNAME and RETRO_ENVIRONMENT_GET_LANGUAGE.

See also

libretro.api.user

The language enumeration and username types that implementations of this protocol supply.

abstract property username

The player username exposed to the core via RETRO_ENVIRONMENT_GET_USERNAME.

None disables the environment call.

abstract property language

The UI language exposed to the core via RETRO_ENVIRONMENT_GET_LANGUAGE.

None disables the environment call.

__init__(*args, **kwargs)
classmethod __new__(*args, **kwargs)