libretro.drivers.power.constant¶
A power driver that always returns a fixed power state.
See also
libretro.api.powerDefines the device power structure this driver always returns.
Classes
A |
- class ConstantPowerDriver[source]¶
Bases:
PowerDriverA
PowerDriverthat always reports a fixedretro_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_poweris not aretro_device_power.
- classmethod __new__(*args, **kwargs)¶
- property device_power¶
The current device power state reported to the core.