libretro.drivers.power.constant

A power driver that always returns a fixed power state.

See also

libretro.api.power

Defines the device power structure this driver always returns.

Classes

ConstantPowerDriver

A PowerDriver that always reports a fixed retro_device_power.

class ConstantPowerDriver[source]

Bases: PowerDriver

A PowerDriver that always reports a fixed retro_device_power.

__init__(device_power)[source]
Parameters:

device_power (retro_device_power) – The power state to always report to the core.

Raises:

TypeError – If device_power is not a retro_device_power.

classmethod __new__(*args, **kwargs)
property device_power

The current device power state reported to the core.