libretro.drivers.power.driver

Protocol definition for the power driver interface.

See also

libretro.api.power

Provides the device power structure that PowerDriver implementations report.

Classes

PowerDriver

Protocol for drivers that report the device's power state to the core.

class PowerDriver[source]

Bases: Protocol

Protocol for drivers that report the device’s power state to the core.

Cores query power state via RETRO_ENVIRONMENT_GET_DEVICE_POWER.

See also

retro_device_power

The C struct whose value this driver returns.

abstract property device_power

The current device power state reported to the core.

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