libretro.api.led¶
Types for allowing Cores to control LED indicators on the host device.
See also
LedDriverThe protocol that uses these types to implement LED control support in libretro.py.
libretro.drivers.ledlibretro.py’s included
LedDriverimplementations.
Module Attributes
Set the state of an LED on the host device. |
Classes
Defines a callback that |
- class retro_led_interface[source]¶
Bases:
StructureDefines a callback that
Cores can use to control LED indicators on the host device.Corresponds to
retro_led_interfaceinlibretro.h.- __deepcopy__(_)[source]¶
Return a copy of this object. Intended for use with
copy.deepcopy().>>> import copy >>> from libretro.api import retro_led_interface >>> copy.deepcopy(retro_led_interface()).set_led_state is None True
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶
- retro_set_led_state_t¶
Set the state of an LED on the host device.
Registered by the frontend and called by the core to enable or disable an indicator LED.
- Parameters:
led – Index of the LED whose state will be changed.
state – New state of the LED; nonzero to enable, zero to disable.
Corresponds to
retro_set_led_state_tinlibretro.h.See also
LedDriver.set_led_stateThe suggested entry point for this callback.