From 098690527e66e309e91bdfdaf42779ca9505443f Mon Sep 17 00:00:00 2001 From: Jesse Talavera Date: Tue, 3 Sep 2024 16:55:33 -0400 Subject: [PATCH] Fix #7 --- src/libretro/drivers/environment/composite.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libretro/drivers/environment/composite.py b/src/libretro/drivers/environment/composite.py index 657a128..22b6dfd 100644 --- a/src/libretro/drivers/environment/composite.py +++ b/src/libretro/drivers/environment/composite.py @@ -80,6 +80,7 @@ retro_savestate_context, retro_sensor_get_input_t, retro_sensor_interface, + retro_set_led_state_t, retro_set_rumble_state_t, retro_set_sensor_state_t, retro_subsystem_info, @@ -1000,7 +1001,9 @@ def _get_led_interface(self, led_ptr: POINTER(retro_led_interface)) -> bool: return True if not self._led_cb: - self._led_cb = retro_led_interface(self.__set_led_state) + self._led_cb = retro_led_interface( + set_led_state=retro_set_led_state_t(self.__set_led_state) + ) led_ptr[0] = self._led_cb return True