// SPDX-FileCopyrightText: 2009 Ingo Ruhnke // SPDX-FileCopyrightText: 2025 Raphael Rosch // SPDX-License-Identifier: GPL-3.0-or-later #ifndef HEADER_JSTEST_GTK_JOYSTICK_CONFIG_FILES_HPP #define HEADER_JSTEST_GTK_JOYSTICK_CONFIG_FILES_HPP #include #include #include #include #include #include #include // #include // namespace fs = std::filesystem; struct JoystickConfig { std::unordered_map values; std::vector usb_ids; std::string icon_filename; std::string js_type; bool icon_filename_is_good = false; std::vector axes; std::vector buttons; int button_maxlen = 0; }; JoystickConfig load_config(const std::string& filename); JoystickConfig get_config_for_usb_id(const std::string& usb_id); std::vector load_all_configs(const std::string& directory); extern std::vector joystick_configs; #endif /* EOF */