libretro.drivers.led.driver¶
Protocol definition for the LED driver interface.
See also
libretro.api.ledProvides the LED interface structure that
LedDriverimplementations use.
Classes
Protocol for drivers that track the state of virtual LEDs exposed to the core. |
- class LedDriver[source]¶
Bases:
ProtocolProtocol for drivers that track the state of virtual LEDs exposed to the core.
Cores control LED state via
RETRO_ENVIRONMENT_GET_LED_INTERFACE.See also
retro_led_interfaceThe C interface struct that this protocol abstracts over.
- abstractmethod set_led_state(led, state)[source]¶
Set the state of a virtual LED.
Corresponds to
retro_set_led_state_t.
- self[key] = value[source]¶
Set the state of a virtual LED. Equivalent to
set_led_state().
- self[key][source]¶
Return the current state of a virtual LED. Equivalent to
get_led_state().
- __init__(*args, **kwargs)¶
- classmethod __new__(*args, **kwargs)¶