feat: gamepad support

tested with dualsense on macOS, close #25
This commit is contained in:
edde746
2025-12-07 19:32:33 +01:00
parent f24bb9dc85
commit 12969eeff9
12 changed files with 503 additions and 2 deletions
@@ -6,6 +6,7 @@
#include "generated_plugin_registrant.h"
#include <gamepads_linux/gamepads_linux_plugin.h>
#include <hotkey_manager_linux/hotkey_manager_linux_plugin.h>
#include <os_media_controls/os_media_controls_plugin.h>
#include <screen_retriever_linux/screen_retriever_linux_plugin.h>
@@ -13,6 +14,9 @@
#include <window_manager/window_manager_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) gamepads_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "GamepadsLinuxPlugin");
gamepads_linux_plugin_register_with_registrar(gamepads_linux_registrar);
g_autoptr(FlPluginRegistrar) hotkey_manager_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "HotkeyManagerLinuxPlugin");
hotkey_manager_linux_plugin_register_with_registrar(hotkey_manager_linux_registrar);