libretro.drivers.led.dict¶
A LED driver that stores LED state in a dictionary.
See also
libretro.api.ledDefines the LED interface structure this driver implements.
Classes
- class DictLedDriver[source]¶
Bases:
LedDriverA
LedDriverthat stores LED states in an in-memorydict.- self[key]¶
Return the current state of a virtual LED. Equivalent to
get_led_state().
- classmethod __new__(*args, **kwargs)¶
- self[key] = value¶
Set the state of a virtual LED. Equivalent to
set_led_state().