diff options
| author | 2024-01-04 20:37:43 -0600 | |
|---|---|---|
| committer | 2024-01-05 11:41:15 -0600 | |
| commit | ee847f8ff0b1b0aec39c1b78c010bc0c08a0a613 (patch) | |
| tree | 3b95cbb74be05f0ce7a007353f1f9f95e1ed3901 | |
| parent | Merge pull request #12437 from ameerj/gl-amd-fixes (diff) | |
| download | yuzu-ee847f8ff0b1b0aec39c1b78c010bc0c08a0a613.tar.gz yuzu-ee847f8ff0b1b0aec39c1b78c010bc0c08a0a613.tar.xz yuzu-ee847f8ff0b1b0aec39c1b78c010bc0c08a0a613.zip | |
hid_core: Move hid to it's own subproject
| -rw-r--r-- | src/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/android/app/src/main/jni/native.cpp | 6 | ||||
| -rw-r--r-- | src/core/CMakeLists.txt | 96 | ||||
| -rw-r--r-- | src/core/core.cpp | 2 | ||||
| -rw-r--r-- | src/core/frontend/applets/controller.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/service/am/applets/applet_cabinet.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/am/applets/applet_controller.cpp | 8 | ||||
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/service/hid/hid_debug_server.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/hid/hid_server.cpp | 35 | ||||
| -rw-r--r-- | src/core/hle/service/hid/hid_system_server.cpp | 15 | ||||
| -rw-r--r-- | src/core/hle/service/hid/hidbus.cpp | 8 | ||||
| -rw-r--r-- | src/core/hle/service/hid/hidbus.h | 2 | ||||
| -rw-r--r-- | src/core/hle/service/hid/irs.cpp | 20 | ||||
| -rw-r--r-- | src/core/hle/service/hid/irs.h | 6 | ||||
| -rw-r--r-- | src/core/hle/service/nfc/common/device.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/nfc/common/device_manager.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/service/nfc/common/device_manager.h | 2 | ||||
| -rw-r--r-- | src/core/hle/service/nfc/nfc_interface.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/nfp/nfp_interface.cpp | 2 | ||||
| -rw-r--r-- | src/core/memory/cheat_engine.cpp | 4 | ||||
| -rw-r--r-- | src/frontend_common/config.cpp | 2 | ||||
| -rw-r--r-- | src/hid_core/CMakeLists.txt | 126 | ||||
| -rw-r--r-- | src/hid_core/frontend/emulated_console.cpp (renamed from src/core/hid/emulated_console.cpp) | 4 | ||||
| -rw-r--r-- | src/hid_core/frontend/emulated_console.h (renamed from src/core/hid/emulated_console.h) | 4 | ||||
| -rw-r--r-- | src/hid_core/frontend/emulated_controller.cpp (renamed from src/core/hid/emulated_controller.cpp) | 6 | ||||
| -rw-r--r-- | src/hid_core/frontend/emulated_controller.h (renamed from src/core/hid/emulated_controller.h) | 6 | ||||
| -rw-r--r-- | src/hid_core/frontend/emulated_devices.cpp (renamed from src/core/hid/emulated_devices.cpp) | 4 | ||||
| -rw-r--r-- | src/hid_core/frontend/emulated_devices.h (renamed from src/core/hid/emulated_devices.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/frontend/input_converter.cpp (renamed from src/core/hid/input_converter.cpp) | 2 | ||||
| -rw-r--r-- | src/hid_core/frontend/input_converter.h (renamed from src/core/hid/input_converter.h) | 0 | ||||
| -rw-r--r-- | src/hid_core/frontend/input_interpreter.cpp (renamed from src/core/hid/input_interpreter.cpp) | 8 | ||||
| -rw-r--r-- | src/hid_core/frontend/input_interpreter.h (renamed from src/core/hid/input_interpreter.h) | 0 | ||||
| -rw-r--r-- | src/hid_core/frontend/motion_input.cpp (renamed from src/core/hid/motion_input.cpp) | 2 | ||||
| -rw-r--r-- | src/hid_core/frontend/motion_input.h (renamed from src/core/hid/motion_input.h) | 0 | ||||
| -rw-r--r-- | src/hid_core/hid_core.cpp (renamed from src/core/hid/hid_core.cpp) | 10 | ||||
| -rw-r--r-- | src/hid_core/hid_core.h (renamed from src/core/hid/hid_core.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/hid_result.h (renamed from src/core/hle/service/hid/errors.h) | 0 | ||||
| -rw-r--r-- | src/hid_core/hid_types.h (renamed from src/core/hid/hid_types.h) | 0 | ||||
| -rw-r--r-- | src/hid_core/hid_util.h (renamed from src/core/hle/service/hid/hid_util.h) | 4 | ||||
| -rw-r--r-- | src/hid_core/hidbus/hidbus_base.cpp (renamed from src/core/hle/service/hid/hidbus/hidbus_base.cpp) | 4 | ||||
| -rw-r--r-- | src/hid_core/hidbus/hidbus_base.h (renamed from src/core/hle/service/hid/hidbus/hidbus_base.h) | 0 | ||||
| -rw-r--r-- | src/hid_core/hidbus/ringcon.cpp (renamed from src/core/hle/service/hid/hidbus/ringcon.cpp) | 6 | ||||
| -rw-r--r-- | src/hid_core/hidbus/ringcon.h (renamed from src/core/hle/service/hid/hidbus/ringcon.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/hidbus/starlink.cpp (renamed from src/core/hle/service/hid/hidbus/starlink.cpp) | 6 | ||||
| -rw-r--r-- | src/hid_core/hidbus/starlink.h (renamed from src/core/hle/service/hid/hidbus/starlink.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/hidbus/stubbed.cpp (renamed from src/core/hle/service/hid/hidbus/stubbed.cpp) | 6 | ||||
| -rw-r--r-- | src/hid_core/hidbus/stubbed.h (renamed from src/core/hle/service/hid/hidbus/stubbed.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/irsensor/clustering_processor.cpp (renamed from src/core/hle/service/hid/irsensor/clustering_processor.cpp) | 6 | ||||
| -rw-r--r-- | src/hid_core/irsensor/clustering_processor.h (renamed from src/core/hle/service/hid/irsensor/clustering_processor.h) | 6 | ||||
| -rw-r--r-- | src/hid_core/irsensor/image_transfer_processor.cpp (renamed from src/core/hle/service/hid/irsensor/image_transfer_processor.cpp) | 6 | ||||
| -rw-r--r-- | src/hid_core/irsensor/image_transfer_processor.h (renamed from src/core/hle/service/hid/irsensor/image_transfer_processor.h) | 4 | ||||
| -rw-r--r-- | src/hid_core/irsensor/ir_led_processor.cpp (renamed from src/core/hle/service/hid/irsensor/ir_led_processor.cpp) | 2 | ||||
| -rw-r--r-- | src/hid_core/irsensor/ir_led_processor.h (renamed from src/core/hle/service/hid/irsensor/ir_led_processor.h) | 4 | ||||
| -rw-r--r-- | src/hid_core/irsensor/irs_types.h (renamed from src/core/hid/irs_types.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/irsensor/moment_processor.cpp (renamed from src/core/hle/service/hid/irsensor/moment_processor.cpp) | 6 | ||||
| -rw-r--r-- | src/hid_core/irsensor/moment_processor.h (renamed from src/core/hle/service/hid/irsensor/moment_processor.h) | 6 | ||||
| -rw-r--r-- | src/hid_core/irsensor/pointing_processor.cpp (renamed from src/core/hle/service/hid/irsensor/pointing_processor.cpp) | 2 | ||||
| -rw-r--r-- | src/hid_core/irsensor/pointing_processor.h (renamed from src/core/hle/service/hid/irsensor/pointing_processor.h) | 4 | ||||
| -rw-r--r-- | src/hid_core/irsensor/processor_base.cpp (renamed from src/core/hle/service/hid/irsensor/processor_base.cpp) | 2 | ||||
| -rw-r--r-- | src/hid_core/irsensor/processor_base.h (renamed from src/core/hle/service/hid/irsensor/processor_base.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/irsensor/tera_plugin_processor.cpp (renamed from src/core/hle/service/hid/irsensor/tera_plugin_processor.cpp) | 2 | ||||
| -rw-r--r-- | src/hid_core/irsensor/tera_plugin_processor.h (renamed from src/core/hle/service/hid/irsensor/tera_plugin_processor.h) | 4 | ||||
| -rw-r--r-- | src/hid_core/precompiled_headers.h | 6 | ||||
| -rw-r--r-- | src/hid_core/resource_manager.cpp (renamed from src/core/hle/service/hid/resource_manager.cpp) | 42 | ||||
| -rw-r--r-- | src/hid_core/resource_manager.h (renamed from src/core/hle/service/hid/resource_manager.h) | 0 | ||||
| -rw-r--r-- | src/hid_core/resources/applet_resource.cpp (renamed from src/core/hle/service/hid/controllers/applet_resource.cpp) | 6 | ||||
| -rw-r--r-- | src/hid_core/resources/applet_resource.h (renamed from src/core/hle/service/hid/controllers/applet_resource.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/resources/controller_base.cpp (renamed from src/core/hle/service/hid/controllers/controller_base.cpp) | 2 | ||||
| -rw-r--r-- | src/hid_core/resources/controller_base.h (renamed from src/core/hle/service/hid/controllers/controller_base.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/resources/debug_pad/debug_pad.cpp (renamed from src/core/hle/service/hid/controllers/debug_pad.cpp) | 12 | ||||
| -rw-r--r-- | src/hid_core/resources/debug_pad/debug_pad.h (renamed from src/core/hle/service/hid/controllers/debug_pad.h) | 7 | ||||
| -rw-r--r-- | src/hid_core/resources/debug_pad/debug_pad_types.h (renamed from src/core/hle/service/hid/controllers/types/debug_pad_types.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/resources/digitizer/digitizer.cpp (renamed from src/core/hle/service/hid/controllers/digitizer.cpp) | 6 | ||||
| -rw-r--r-- | src/hid_core/resources/digitizer/digitizer.h (renamed from src/core/hle/service/hid/controllers/digitizer.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/resources/hid_firmware_settings.cpp (renamed from src/core/hle/service/hid/hid_firmware_settings.cpp) | 2 | ||||
| -rw-r--r-- | src/hid_core/resources/hid_firmware_settings.h (renamed from src/core/hle/service/hid/hid_firmware_settings.h) | 0 | ||||
| -rw-r--r-- | src/hid_core/resources/irs_ring_lifo.h (renamed from src/core/hle/service/hid/irs_ring_lifo.h) | 0 | ||||
| -rw-r--r-- | src/hid_core/resources/keyboard/keyboard.cpp (renamed from src/core/hle/service/hid/controllers/keyboard.cpp) | 10 | ||||
| -rw-r--r-- | src/hid_core/resources/keyboard/keyboard.h (renamed from src/core/hle/service/hid/controllers/keyboard.h) | 9 | ||||
| -rw-r--r-- | src/hid_core/resources/keyboard/keyboard_types.h (renamed from src/core/hle/service/hid/controllers/types/keyboard_types.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/resources/mouse/debug_mouse.cpp (renamed from src/core/hle/service/hid/controllers/debug_mouse.cpp) | 10 | ||||
| -rw-r--r-- | src/hid_core/resources/mouse/debug_mouse.h (renamed from src/core/hle/service/hid/controllers/debug_mouse.h) | 6 | ||||
| -rw-r--r-- | src/hid_core/resources/mouse/mouse.cpp (renamed from src/core/hle/service/hid/controllers/mouse.cpp) | 10 | ||||
| -rw-r--r-- | src/hid_core/resources/mouse/mouse.h (renamed from src/core/hle/service/hid/controllers/mouse.h) | 6 | ||||
| -rw-r--r-- | src/hid_core/resources/mouse/mouse_types.h (renamed from src/core/hle/service/hid/controllers/types/mouse_types.h) | 0 | ||||
| -rw-r--r-- | src/hid_core/resources/npad/npad.cpp (renamed from src/core/hle/service/hid/controllers/npad.cpp) | 14 | ||||
| -rw-r--r-- | src/hid_core/resources/npad/npad.h (renamed from src/core/hle/service/hid/controllers/npad.h) | 8 | ||||
| -rw-r--r-- | src/hid_core/resources/npad/npad_data.cpp (renamed from src/core/hle/service/hid/controllers/npad/npad_data.cpp) | 4 | ||||
| -rw-r--r-- | src/hid_core/resources/npad/npad_data.h (renamed from src/core/hle/service/hid/controllers/npad/npad_data.h) | 4 | ||||
| -rw-r--r-- | src/hid_core/resources/npad/npad_resource.cpp (renamed from src/core/hle/service/hid/controllers/npad/npad_resource.cpp) | 8 | ||||
| -rw-r--r-- | src/hid_core/resources/npad/npad_resource.h (renamed from src/core/hle/service/hid/controllers/npad/npad_resource.h) | 8 | ||||
| -rw-r--r-- | src/hid_core/resources/npad/npad_types.h (renamed from src/core/hle/service/hid/controllers/types/npad_types.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/resources/palma/palma.cpp (renamed from src/core/hle/service/hid/controllers/palma.cpp) | 7 | ||||
| -rw-r--r-- | src/hid_core/resources/palma/palma.h (renamed from src/core/hle/service/hid/controllers/palma.h) | 5 | ||||
| -rw-r--r-- | src/hid_core/resources/ring_lifo.h (renamed from src/core/hle/service/hid/ring_lifo.h) | 0 | ||||
| -rw-r--r-- | src/hid_core/resources/shared_memory_format.h (renamed from src/core/hle/service/hid/controllers/types/shared_memory_format.h) | 14 | ||||
| -rw-r--r-- | src/hid_core/resources/shared_memory_holder.cpp (renamed from src/core/hle/service/hid/controllers/shared_memory_holder.cpp) | 8 | ||||
| -rw-r--r-- | src/hid_core/resources/shared_memory_holder.h (renamed from src/core/hle/service/hid/controllers/shared_memory_holder.h) | 0 | ||||
| -rw-r--r-- | src/hid_core/resources/six_axis/console_six_axis.cpp (renamed from src/core/hle/service/hid/controllers/console_six_axis.cpp) | 8 | ||||
| -rw-r--r-- | src/hid_core/resources/six_axis/console_six_axis.h (renamed from src/core/hle/service/hid/controllers/console_six_axis.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/resources/six_axis/seven_six_axis.cpp (renamed from src/core/hle/service/hid/controllers/seven_six_axis.cpp) | 8 | ||||
| -rw-r--r-- | src/hid_core/resources/six_axis/seven_six_axis.h (renamed from src/core/hle/service/hid/controllers/seven_six_axis.h) | 4 | ||||
| -rw-r--r-- | src/hid_core/resources/six_axis/six_axis.cpp (renamed from src/core/hle/service/hid/controllers/six_axis.cpp) | 14 | ||||
| -rw-r--r-- | src/hid_core/resources/six_axis/six_axis.h (renamed from src/core/hle/service/hid/controllers/six_axis.h) | 6 | ||||
| -rw-r--r-- | src/hid_core/resources/system_buttons/capture_button.cpp (renamed from src/core/hle/service/hid/controllers/capture_button.cpp) | 6 | ||||
| -rw-r--r-- | src/hid_core/resources/system_buttons/capture_button.h (renamed from src/core/hle/service/hid/controllers/capture_button.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/resources/system_buttons/home_button.cpp (renamed from src/core/hle/service/hid/controllers/home_button.cpp) | 6 | ||||
| -rw-r--r-- | src/hid_core/resources/system_buttons/home_button.h (renamed from src/core/hle/service/hid/controllers/home_button.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/resources/system_buttons/sleep_button.cpp (renamed from src/core/hle/service/hid/controllers/sleep_button.cpp) | 6 | ||||
| -rw-r--r-- | src/hid_core/resources/system_buttons/sleep_button.h (renamed from src/core/hle/service/hid/controllers/sleep_button.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/resources/touch_screen/gesture.cpp (renamed from src/core/hle/service/hid/controllers/gesture.cpp) | 10 | ||||
| -rw-r--r-- | src/hid_core/resources/touch_screen/gesture.h (renamed from src/core/hle/service/hid/controllers/gesture.h) | 4 | ||||
| -rw-r--r-- | src/hid_core/resources/touch_screen/gesture_types.h (renamed from src/core/hle/service/hid/controllers/types/gesture_types.h) | 0 | ||||
| -rw-r--r-- | src/hid_core/resources/touch_screen/touch_screen.cpp (renamed from src/core/hle/service/hid/controllers/touchscreen.cpp) | 10 | ||||
| -rw-r--r-- | src/hid_core/resources/touch_screen/touch_screen.h (renamed from src/core/hle/service/hid/controllers/touchscreen.h) | 6 | ||||
| -rw-r--r-- | src/hid_core/resources/touch_screen/touch_types.h (renamed from src/core/hle/service/hid/controllers/types/touch_types.h) | 2 | ||||
| -rw-r--r-- | src/hid_core/resources/unique_pad/unique_pad.cpp (renamed from src/core/hle/service/hid/controllers/unique_pad.cpp) | 6 | ||||
| -rw-r--r-- | src/hid_core/resources/unique_pad/unique_pad.h (renamed from src/core/hle/service/hid/controllers/unique_pad.h) | 2 | ||||
| -rw-r--r-- | src/input_common/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/yuzu/applets/qt_controller.cpp | 8 | ||||
| -rw-r--r-- | src/yuzu/applets/qt_software_keyboard.cpp | 8 | ||||
| -rw-r--r-- | src/yuzu/applets/qt_web_browser.cpp | 2 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_debug_controller.cpp | 2 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_hotkeys.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_input.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_input_advanced.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_input_per_game.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_input_player.cpp | 6 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_input_player_widget.cpp | 2 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_input_player_widget.h | 4 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_ringcon.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_vibration.cpp | 6 | ||||
| -rw-r--r-- | src/yuzu/debugger/controller.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/hotkeys.cpp | 2 | ||||
| -rw-r--r-- | src/yuzu/hotkeys.h | 2 | ||||
| -rw-r--r-- | src/yuzu/main.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/util/controller_navigation.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/util/overlay_dialog.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | 2 |
141 files changed, 481 insertions, 438 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e04d2418b..edca221b1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -185,6 +185,7 @@ add_subdirectory(common) | |||
| 185 | add_subdirectory(core) | 185 | add_subdirectory(core) |
| 186 | add_subdirectory(audio_core) | 186 | add_subdirectory(audio_core) |
| 187 | add_subdirectory(video_core) | 187 | add_subdirectory(video_core) |
| 188 | add_subdirectory(hid_core) | ||
| 188 | add_subdirectory(network) | 189 | add_subdirectory(network) |
| 189 | add_subdirectory(input_common) | 190 | add_subdirectory(input_common) |
| 190 | add_subdirectory(frontend_common) | 191 | add_subdirectory(frontend_common) |
diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp index 0c1db7d46..056920a4a 100644 --- a/src/android/app/src/main/jni/native.cpp +++ b/src/android/app/src/main/jni/native.cpp | |||
| @@ -45,15 +45,15 @@ | |||
| 45 | #include "core/frontend/applets/profile_select.h" | 45 | #include "core/frontend/applets/profile_select.h" |
| 46 | #include "core/frontend/applets/software_keyboard.h" | 46 | #include "core/frontend/applets/software_keyboard.h" |
| 47 | #include "core/frontend/applets/web_browser.h" | 47 | #include "core/frontend/applets/web_browser.h" |
| 48 | #include "core/hid/emulated_controller.h" | ||
| 49 | #include "core/hid/hid_core.h" | ||
| 50 | #include "core/hid/hid_types.h" | ||
| 51 | #include "core/hle/service/am/applet_ae.h" | 48 | #include "core/hle/service/am/applet_ae.h" |
| 52 | #include "core/hle/service/am/applet_oe.h" | 49 | #include "core/hle/service/am/applet_oe.h" |
| 53 | #include "core/hle/service/am/applets/applets.h" | 50 | #include "core/hle/service/am/applets/applets.h" |
| 54 | #include "core/hle/service/filesystem/filesystem.h" | 51 | #include "core/hle/service/filesystem/filesystem.h" |
| 55 | #include "core/loader/loader.h" | 52 | #include "core/loader/loader.h" |
| 56 | #include "frontend_common/config.h" | 53 | #include "frontend_common/config.h" |
| 54 | #include "hid_core/frontend/emulated_controller.h" | ||
| 55 | #include "hid_core/hid_core.h" | ||
| 56 | #include "hid_core/hid_types.h" | ||
| 57 | #include "jni/android_common/android_common.h" | 57 | #include "jni/android_common/android_common.h" |
| 58 | #include "jni/id_cache.h" | 58 | #include "jni/id_cache.h" |
| 59 | #include "jni/native.h" | 59 | #include "jni/native.h" |
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index e2ec2164c..adcc23c18 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -183,22 +183,6 @@ add_library(core STATIC | |||
| 183 | frontend/framebuffer_layout.cpp | 183 | frontend/framebuffer_layout.cpp |
| 184 | frontend/framebuffer_layout.h | 184 | frontend/framebuffer_layout.h |
| 185 | frontend/graphics_context.h | 185 | frontend/graphics_context.h |
| 186 | hid/emulated_console.cpp | ||
| 187 | hid/emulated_console.h | ||
| 188 | hid/emulated_controller.cpp | ||
| 189 | hid/emulated_controller.h | ||
| 190 | hid/emulated_devices.cpp | ||
| 191 | hid/emulated_devices.h | ||
| 192 | hid/hid_core.cpp | ||
| 193 | hid/hid_core.h | ||
| 194 | hid/hid_types.h | ||
| 195 | hid/input_converter.cpp | ||
| 196 | hid/input_converter.h | ||
| 197 | hid/input_interpreter.cpp | ||
| 198 | hid/input_interpreter.h | ||
| 199 | hid/irs_types.h | ||
| 200 | hid/motion_input.cpp | ||
| 201 | hid/motion_input.h | ||
| 202 | hle/api_version.h | 186 | hle/api_version.h |
| 203 | hle/ipc.h | 187 | hle/ipc.h |
| 204 | hle/kernel/board/nintendo/nx/k_memory_layout.cpp | 188 | hle/kernel/board/nintendo/nx/k_memory_layout.cpp |
| @@ -531,94 +515,16 @@ add_library(core STATIC | |||
| 531 | hle/service/hid/hid.h | 515 | hle/service/hid/hid.h |
| 532 | hle/service/hid/hid_debug_server.cpp | 516 | hle/service/hid/hid_debug_server.cpp |
| 533 | hle/service/hid/hid_debug_server.h | 517 | hle/service/hid/hid_debug_server.h |
| 534 | hle/service/hid/hid_firmware_settings.cpp | ||
| 535 | hle/service/hid/hid_firmware_settings.h | ||
| 536 | hle/service/hid/hid_server.cpp | 518 | hle/service/hid/hid_server.cpp |
| 537 | hle/service/hid/hid_server.h | 519 | hle/service/hid/hid_server.h |
| 538 | hle/service/hid/hid_system_server.cpp | 520 | hle/service/hid/hid_system_server.cpp |
| 539 | hle/service/hid/hid_system_server.h | 521 | hle/service/hid/hid_system_server.h |
| 540 | hle/service/hid/hid_util.h | ||
| 541 | hle/service/hid/hidbus.cpp | 522 | hle/service/hid/hidbus.cpp |
| 542 | hle/service/hid/hidbus.h | 523 | hle/service/hid/hidbus.h |
| 543 | hle/service/hid/irs.cpp | 524 | hle/service/hid/irs.cpp |
| 544 | hle/service/hid/irs.h | 525 | hle/service/hid/irs.h |
| 545 | hle/service/hid/irs_ring_lifo.h | ||
| 546 | hle/service/hid/resource_manager.cpp | ||
| 547 | hle/service/hid/resource_manager.h | ||
| 548 | hle/service/hid/ring_lifo.h | ||
| 549 | hle/service/hid/xcd.cpp | 526 | hle/service/hid/xcd.cpp |
| 550 | hle/service/hid/xcd.h | 527 | hle/service/hid/xcd.h |
| 551 | hle/service/hid/errors.h | ||
| 552 | hle/service/hid/controllers/npad/npad_data.cpp | ||
| 553 | hle/service/hid/controllers/npad/npad_data.h | ||
| 554 | hle/service/hid/controllers/npad/npad_resource.cpp | ||
| 555 | hle/service/hid/controllers/npad/npad_resource.h | ||
| 556 | hle/service/hid/controllers/types/debug_pad_types.h | ||
| 557 | hle/service/hid/controllers/types/keyboard_types.h | ||
| 558 | hle/service/hid/controllers/types/mouse_types.h | ||
| 559 | hle/service/hid/controllers/types/npad_types.h | ||
| 560 | hle/service/hid/controllers/types/shared_memory_format.h | ||
| 561 | hle/service/hid/controllers/types/touch_types.h | ||
| 562 | hle/service/hid/controllers/applet_resource.cpp | ||
| 563 | hle/service/hid/controllers/applet_resource.h | ||
| 564 | hle/service/hid/controllers/capture_button.cpp | ||
| 565 | hle/service/hid/controllers/capture_button.h | ||
| 566 | hle/service/hid/controllers/console_six_axis.cpp | ||
| 567 | hle/service/hid/controllers/console_six_axis.h | ||
| 568 | hle/service/hid/controllers/controller_base.cpp | ||
| 569 | hle/service/hid/controllers/controller_base.h | ||
| 570 | hle/service/hid/controllers/debug_mouse.cpp | ||
| 571 | hle/service/hid/controllers/debug_mouse.h | ||
| 572 | hle/service/hid/controllers/debug_pad.cpp | ||
| 573 | hle/service/hid/controllers/debug_pad.h | ||
| 574 | hle/service/hid/controllers/digitizer.cpp | ||
| 575 | hle/service/hid/controllers/digitizer.h | ||
| 576 | hle/service/hid/controllers/gesture.cpp | ||
| 577 | hle/service/hid/controllers/gesture.h | ||
| 578 | hle/service/hid/controllers/home_button.cpp | ||
| 579 | hle/service/hid/controllers/home_button.h | ||
| 580 | hle/service/hid/controllers/keyboard.cpp | ||
| 581 | hle/service/hid/controllers/keyboard.h | ||
| 582 | hle/service/hid/controllers/mouse.cpp | ||
| 583 | hle/service/hid/controllers/mouse.h | ||
| 584 | hle/service/hid/controllers/npad.cpp | ||
| 585 | hle/service/hid/controllers/npad.h | ||
| 586 | hle/service/hid/controllers/palma.cpp | ||
| 587 | hle/service/hid/controllers/palma.h | ||
| 588 | hle/service/hid/controllers/seven_six_axis.cpp | ||
| 589 | hle/service/hid/controllers/seven_six_axis.h | ||
| 590 | hle/service/hid/controllers/shared_memory_holder.cpp | ||
| 591 | hle/service/hid/controllers/shared_memory_holder.h | ||
| 592 | hle/service/hid/controllers/six_axis.cpp | ||
| 593 | hle/service/hid/controllers/six_axis.h | ||
| 594 | hle/service/hid/controllers/sleep_button.cpp | ||
| 595 | hle/service/hid/controllers/sleep_button.h | ||
| 596 | hle/service/hid/controllers/touchscreen.cpp | ||
| 597 | hle/service/hid/controllers/touchscreen.h | ||
| 598 | hle/service/hid/controllers/unique_pad.cpp | ||
| 599 | hle/service/hid/controllers/unique_pad.h | ||
| 600 | hle/service/hid/hidbus/hidbus_base.cpp | ||
| 601 | hle/service/hid/hidbus/hidbus_base.h | ||
| 602 | hle/service/hid/hidbus/ringcon.cpp | ||
| 603 | hle/service/hid/hidbus/ringcon.h | ||
| 604 | hle/service/hid/hidbus/starlink.cpp | ||
| 605 | hle/service/hid/hidbus/starlink.h | ||
| 606 | hle/service/hid/hidbus/stubbed.cpp | ||
| 607 | hle/service/hid/hidbus/stubbed.h | ||
| 608 | hle/service/hid/irsensor/clustering_processor.cpp | ||
| 609 | hle/service/hid/irsensor/clustering_processor.h | ||
| 610 | hle/service/hid/irsensor/image_transfer_processor.cpp | ||
| 611 | hle/service/hid/irsensor/image_transfer_processor.h | ||
| 612 | hle/service/hid/irsensor/ir_led_processor.cpp | ||
| 613 | hle/service/hid/irsensor/ir_led_processor.h | ||
| 614 | hle/service/hid/irsensor/moment_processor.cpp | ||
| 615 | hle/service/hid/irsensor/moment_processor.h | ||
| 616 | hle/service/hid/irsensor/pointing_processor.cpp | ||
| 617 | hle/service/hid/irsensor/pointing_processor.h | ||
| 618 | hle/service/hid/irsensor/processor_base.cpp | ||
| 619 | hle/service/hid/irsensor/processor_base.h | ||
| 620 | hle/service/hid/irsensor/tera_plugin_processor.cpp | ||
| 621 | hle/service/hid/irsensor/tera_plugin_processor.h | ||
| 622 | hle/service/lbl/lbl.cpp | 528 | hle/service/lbl/lbl.cpp |
| 623 | hle/service/lbl/lbl.h | 529 | hle/service/lbl/lbl.h |
| 624 | hle/service/ldn/lan_discovery.cpp | 530 | hle/service/ldn/lan_discovery.cpp |
| @@ -959,7 +865,7 @@ endif() | |||
| 959 | 865 | ||
| 960 | create_target_directory_groups(core) | 866 | create_target_directory_groups(core) |
| 961 | 867 | ||
| 962 | target_link_libraries(core PUBLIC common PRIVATE audio_core network video_core nx_tzdb) | 868 | target_link_libraries(core PUBLIC common PRIVATE audio_core hid_core network video_core nx_tzdb) |
| 963 | target_link_libraries(core PUBLIC Boost::headers PRIVATE fmt::fmt nlohmann_json::nlohmann_json mbedtls RenderDoc::API) | 869 | target_link_libraries(core PUBLIC Boost::headers PRIVATE fmt::fmt nlohmann_json::nlohmann_json mbedtls RenderDoc::API) |
| 964 | if (MINGW) | 870 | if (MINGW) |
| 965 | target_link_libraries(core PRIVATE ${MSWSOCK_LIBRARY}) | 871 | target_link_libraries(core PRIVATE ${MSWSOCK_LIBRARY}) |
diff --git a/src/core/core.cpp b/src/core/core.cpp index 66f444d39..c063f7719 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -28,7 +28,6 @@ | |||
| 28 | #include "core/file_sys/savedata_factory.h" | 28 | #include "core/file_sys/savedata_factory.h" |
| 29 | #include "core/file_sys/vfs_concat.h" | 29 | #include "core/file_sys/vfs_concat.h" |
| 30 | #include "core/file_sys/vfs_real.h" | 30 | #include "core/file_sys/vfs_real.h" |
| 31 | #include "core/hid/hid_core.h" | ||
| 32 | #include "core/hle/kernel/k_memory_manager.h" | 31 | #include "core/hle/kernel/k_memory_manager.h" |
| 33 | #include "core/hle/kernel/k_process.h" | 32 | #include "core/hle/kernel/k_process.h" |
| 34 | #include "core/hle/kernel/k_resource_limit.h" | 33 | #include "core/hle/kernel/k_resource_limit.h" |
| @@ -52,6 +51,7 @@ | |||
| 52 | #include "core/telemetry_session.h" | 51 | #include "core/telemetry_session.h" |
| 53 | #include "core/tools/freezer.h" | 52 | #include "core/tools/freezer.h" |
| 54 | #include "core/tools/renderdoc.h" | 53 | #include "core/tools/renderdoc.h" |
| 54 | #include "hid_core/hid_core.h" | ||
| 55 | #include "network/network.h" | 55 | #include "network/network.h" |
| 56 | #include "video_core/host1x/host1x.h" | 56 | #include "video_core/host1x/host1x.h" |
| 57 | #include "video_core/renderer_base.h" | 57 | #include "video_core/renderer_base.h" |
diff --git a/src/core/frontend/applets/controller.cpp b/src/core/frontend/applets/controller.cpp index 27755cb58..34fe23b6a 100644 --- a/src/core/frontend/applets/controller.cpp +++ b/src/core/frontend/applets/controller.cpp | |||
| @@ -6,9 +6,9 @@ | |||
| 6 | #include "common/settings.h" | 6 | #include "common/settings.h" |
| 7 | #include "common/settings_enums.h" | 7 | #include "common/settings_enums.h" |
| 8 | #include "core/frontend/applets/controller.h" | 8 | #include "core/frontend/applets/controller.h" |
| 9 | #include "core/hid/emulated_controller.h" | 9 | #include "hid_core/frontend/emulated_controller.h" |
| 10 | #include "core/hid/hid_core.h" | 10 | #include "hid_core/hid_core.h" |
| 11 | #include "core/hid/hid_types.h" | 11 | #include "hid_core/hid_types.h" |
| 12 | 12 | ||
| 13 | namespace Core::Frontend { | 13 | namespace Core::Frontend { |
| 14 | 14 | ||
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 97eb56ff0..9e05bdafa 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -13,7 +13,6 @@ | |||
| 13 | #include "core/file_sys/patch_manager.h" | 13 | #include "core/file_sys/patch_manager.h" |
| 14 | #include "core/file_sys/registered_cache.h" | 14 | #include "core/file_sys/registered_cache.h" |
| 15 | #include "core/file_sys/savedata_factory.h" | 15 | #include "core/file_sys/savedata_factory.h" |
| 16 | #include "core/hid/hid_types.h" | ||
| 17 | #include "core/hle/kernel/k_event.h" | 16 | #include "core/hle/kernel/k_event.h" |
| 18 | #include "core/hle/kernel/k_transfer_memory.h" | 17 | #include "core/hle/kernel/k_transfer_memory.h" |
| 19 | #include "core/hle/result.h" | 18 | #include "core/hle/result.h" |
| @@ -37,7 +36,6 @@ | |||
| 37 | #include "core/hle/service/caps/caps_su.h" | 36 | #include "core/hle/service/caps/caps_su.h" |
| 38 | #include "core/hle/service/caps/caps_types.h" | 37 | #include "core/hle/service/caps/caps_types.h" |
| 39 | #include "core/hle/service/filesystem/filesystem.h" | 38 | #include "core/hle/service/filesystem/filesystem.h" |
| 40 | #include "core/hle/service/hid/controllers/npad.h" | ||
| 41 | #include "core/hle/service/ipc_helpers.h" | 39 | #include "core/hle/service/ipc_helpers.h" |
| 42 | #include "core/hle/service/ns/ns.h" | 40 | #include "core/hle/service/ns/ns.h" |
| 43 | #include "core/hle/service/nvnflinger/fb_share_buffer_manager.h" | 41 | #include "core/hle/service/nvnflinger/fb_share_buffer_manager.h" |
| @@ -48,6 +46,8 @@ | |||
| 48 | #include "core/hle/service/vi/vi.h" | 46 | #include "core/hle/service/vi/vi.h" |
| 49 | #include "core/hle/service/vi/vi_results.h" | 47 | #include "core/hle/service/vi/vi_results.h" |
| 50 | #include "core/memory.h" | 48 | #include "core/memory.h" |
| 49 | #include "hid_core/hid_types.h" | ||
| 50 | #include "hid_core/resources/npad/npad.h" | ||
| 51 | 51 | ||
| 52 | namespace Service::AM { | 52 | namespace Service::AM { |
| 53 | 53 | ||
diff --git a/src/core/hle/service/am/applets/applet_cabinet.cpp b/src/core/hle/service/am/applets/applet_cabinet.cpp index 3906c0fa4..c2ff444a6 100644 --- a/src/core/hle/service/am/applets/applet_cabinet.cpp +++ b/src/core/hle/service/am/applets/applet_cabinet.cpp | |||
| @@ -5,13 +5,13 @@ | |||
| 5 | #include "common/logging/log.h" | 5 | #include "common/logging/log.h" |
| 6 | #include "core/core.h" | 6 | #include "core/core.h" |
| 7 | #include "core/frontend/applets/cabinet.h" | 7 | #include "core/frontend/applets/cabinet.h" |
| 8 | #include "core/hid/hid_core.h" | ||
| 9 | #include "core/hle/kernel/k_event.h" | 8 | #include "core/hle/kernel/k_event.h" |
| 10 | #include "core/hle/kernel/k_readable_event.h" | 9 | #include "core/hle/kernel/k_readable_event.h" |
| 11 | #include "core/hle/service/am/am.h" | 10 | #include "core/hle/service/am/am.h" |
| 12 | #include "core/hle/service/am/applets/applet_cabinet.h" | 11 | #include "core/hle/service/am/applets/applet_cabinet.h" |
| 13 | #include "core/hle/service/mii/mii_manager.h" | 12 | #include "core/hle/service/mii/mii_manager.h" |
| 14 | #include "core/hle/service/nfc/common/device.h" | 13 | #include "core/hle/service/nfc/common/device.h" |
| 14 | #include "hid_core/hid_core.h" | ||
| 15 | 15 | ||
| 16 | namespace Service::AM::Applets { | 16 | namespace Service::AM::Applets { |
| 17 | 17 | ||
diff --git a/src/core/hle/service/am/applets/applet_controller.cpp b/src/core/hle/service/am/applets/applet_controller.cpp index 9840d2547..0e4d9cc39 100644 --- a/src/core/hle/service/am/applets/applet_controller.cpp +++ b/src/core/hle/service/am/applets/applet_controller.cpp | |||
| @@ -9,13 +9,13 @@ | |||
| 9 | #include "common/string_util.h" | 9 | #include "common/string_util.h" |
| 10 | #include "core/core.h" | 10 | #include "core/core.h" |
| 11 | #include "core/frontend/applets/controller.h" | 11 | #include "core/frontend/applets/controller.h" |
| 12 | #include "core/hid/emulated_controller.h" | ||
| 13 | #include "core/hid/hid_core.h" | ||
| 14 | #include "core/hid/hid_types.h" | ||
| 15 | #include "core/hle/result.h" | 12 | #include "core/hle/result.h" |
| 16 | #include "core/hle/service/am/am.h" | 13 | #include "core/hle/service/am/am.h" |
| 17 | #include "core/hle/service/am/applets/applet_controller.h" | 14 | #include "core/hle/service/am/applets/applet_controller.h" |
| 18 | #include "core/hle/service/hid/controllers/npad.h" | 15 | #include "hid_core/frontend/emulated_controller.h" |
| 16 | #include "hid_core/hid_core.h" | ||
| 17 | #include "hid_core/hid_types.h" | ||
| 18 | #include "hid_core/resources/npad/npad.h" | ||
| 19 | 19 | ||
| 20 | namespace Service::AM::Applets { | 20 | namespace Service::AM::Applets { |
| 21 | 21 | ||
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index bd2873181..fc8a3ab66 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -5,14 +5,14 @@ | |||
| 5 | #include "core/hle/kernel/kernel.h" | 5 | #include "core/hle/kernel/kernel.h" |
| 6 | #include "core/hle/service/hid/hid.h" | 6 | #include "core/hle/service/hid/hid.h" |
| 7 | #include "core/hle/service/hid/hid_debug_server.h" | 7 | #include "core/hle/service/hid/hid_debug_server.h" |
| 8 | #include "core/hle/service/hid/hid_firmware_settings.h" | ||
| 9 | #include "core/hle/service/hid/hid_server.h" | 8 | #include "core/hle/service/hid/hid_server.h" |
| 10 | #include "core/hle/service/hid/hid_system_server.h" | 9 | #include "core/hle/service/hid/hid_system_server.h" |
| 11 | #include "core/hle/service/hid/hidbus.h" | 10 | #include "core/hle/service/hid/hidbus.h" |
| 12 | #include "core/hle/service/hid/irs.h" | 11 | #include "core/hle/service/hid/irs.h" |
| 13 | #include "core/hle/service/hid/resource_manager.h" | ||
| 14 | #include "core/hle/service/hid/xcd.h" | 12 | #include "core/hle/service/hid/xcd.h" |
| 15 | #include "core/hle/service/server_manager.h" | 13 | #include "core/hle/service/server_manager.h" |
| 14 | #include "hid_core/resource_manager.h" | ||
| 15 | #include "hid_core/resources/hid_firmware_settings.h" | ||
| 16 | 16 | ||
| 17 | namespace Service::HID { | 17 | namespace Service::HID { |
| 18 | 18 | ||
diff --git a/src/core/hle/service/hid/hid_debug_server.cpp b/src/core/hle/service/hid/hid_debug_server.cpp index 6294f3dfb..f2a767d37 100644 --- a/src/core/hle/service/hid/hid_debug_server.cpp +++ b/src/core/hle/service/hid/hid_debug_server.cpp | |||
| @@ -2,8 +2,8 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later | 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/hid/hid_debug_server.h" | 4 | #include "core/hle/service/hid/hid_debug_server.h" |
| 5 | #include "core/hle/service/hid/resource_manager.h" | ||
| 6 | #include "core/hle/service/ipc_helpers.h" | 5 | #include "core/hle/service/ipc_helpers.h" |
| 6 | #include "hid_core/resource_manager.h" | ||
| 7 | 7 | ||
| 8 | namespace Service::HID { | 8 | namespace Service::HID { |
| 9 | 9 | ||
diff --git a/src/core/hle/service/hid/hid_server.cpp b/src/core/hle/service/hid/hid_server.cpp index a953c92b3..2ff00d30d 100644 --- a/src/core/hle/service/hid/hid_server.cpp +++ b/src/core/hle/service/hid/hid_server.cpp | |||
| @@ -5,30 +5,29 @@ | |||
| 5 | #include "common/common_types.h" | 5 | #include "common/common_types.h" |
| 6 | #include "common/logging/log.h" | 6 | #include "common/logging/log.h" |
| 7 | #include "common/settings.h" | 7 | #include "common/settings.h" |
| 8 | #include "core/hid/hid_core.h" | ||
| 9 | #include "core/hle/kernel/k_shared_memory.h" | 8 | #include "core/hle/kernel/k_shared_memory.h" |
| 10 | #include "core/hle/kernel/k_transfer_memory.h" | 9 | #include "core/hle/kernel/k_transfer_memory.h" |
| 11 | #include "core/hle/kernel/kernel.h" | 10 | #include "core/hle/kernel/kernel.h" |
| 12 | #include "core/hle/service/hid/errors.h" | ||
| 13 | #include "core/hle/service/hid/hid_firmware_settings.h" | ||
| 14 | #include "core/hle/service/hid/hid_server.h" | 11 | #include "core/hle/service/hid/hid_server.h" |
| 15 | #include "core/hle/service/hid/hid_util.h" | ||
| 16 | #include "core/hle/service/hid/resource_manager.h" | ||
| 17 | #include "core/hle/service/ipc_helpers.h" | 12 | #include "core/hle/service/ipc_helpers.h" |
| 18 | #include "core/memory.h" | 13 | #include "core/memory.h" |
| 19 | 14 | #include "hid_core/hid_result.h" | |
| 20 | #include "core/hle/service/hid/controllers/console_six_axis.h" | 15 | #include "hid_core/hid_util.h" |
| 21 | #include "core/hle/service/hid/controllers/controller_base.h" | 16 | #include "hid_core/resource_manager.h" |
| 22 | #include "core/hle/service/hid/controllers/debug_pad.h" | 17 | #include "hid_core/resources/hid_firmware_settings.h" |
| 23 | #include "core/hle/service/hid/controllers/gesture.h" | 18 | |
| 24 | #include "core/hle/service/hid/controllers/keyboard.h" | 19 | #include "hid_core/resources/controller_base.h" |
| 25 | #include "core/hle/service/hid/controllers/mouse.h" | 20 | #include "hid_core/resources/debug_pad/debug_pad.h" |
| 26 | #include "core/hle/service/hid/controllers/npad.h" | 21 | #include "hid_core/resources/keyboard/keyboard.h" |
| 27 | #include "core/hle/service/hid/controllers/palma.h" | 22 | #include "hid_core/resources/mouse/mouse.h" |
| 28 | #include "core/hle/service/hid/controllers/seven_six_axis.h" | 23 | #include "hid_core/resources/npad/npad.h" |
| 29 | #include "core/hle/service/hid/controllers/six_axis.h" | 24 | #include "hid_core/resources/npad/npad_types.h" |
| 30 | #include "core/hle/service/hid/controllers/touchscreen.h" | 25 | #include "hid_core/resources/palma/palma.h" |
| 31 | #include "core/hle/service/hid/controllers/types/npad_types.h" | 26 | #include "hid_core/resources/six_axis/console_six_axis.h" |
| 27 | #include "hid_core/resources/six_axis/seven_six_axis.h" | ||
| 28 | #include "hid_core/resources/six_axis/six_axis.h" | ||
| 29 | #include "hid_core/resources/touch_screen/gesture.h" | ||
| 30 | #include "hid_core/resources/touch_screen/touch_screen.h" | ||
| 32 | 31 | ||
| 33 | namespace Service::HID { | 32 | namespace Service::HID { |
| 34 | 33 | ||
diff --git a/src/core/hle/service/hid/hid_system_server.cpp b/src/core/hle/service/hid/hid_system_server.cpp index 4823de743..027c56025 100644 --- a/src/core/hle/service/hid/hid_system_server.cpp +++ b/src/core/hle/service/hid/hid_system_server.cpp | |||
| @@ -1,15 +1,14 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later | 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hid/hid_core.h" | ||
| 5 | #include "core/hle/service/hid/controllers/npad.h" | ||
| 6 | #include "core/hle/service/hid/controllers/palma.h" | ||
| 7 | #include "core/hle/service/hid/controllers/touchscreen.h" | ||
| 8 | #include "core/hle/service/hid/controllers/types/npad_types.h" | ||
| 9 | #include "core/hle/service/hid/errors.h" | ||
| 10 | #include "core/hle/service/hid/hid_system_server.h" | 4 | #include "core/hle/service/hid/hid_system_server.h" |
| 11 | #include "core/hle/service/hid/resource_manager.h" | ||
| 12 | #include "core/hle/service/ipc_helpers.h" | 5 | #include "core/hle/service/ipc_helpers.h" |
| 6 | #include "hid_core/hid_result.h" | ||
| 7 | #include "hid_core/resource_manager.h" | ||
| 8 | #include "hid_core/resources/npad/npad.h" | ||
| 9 | #include "hid_core/resources/npad/npad_types.h" | ||
| 10 | #include "hid_core/resources/palma/palma.h" | ||
| 11 | #include "hid_core/resources/touch_screen/touch_screen.h" | ||
| 13 | 12 | ||
| 14 | namespace Service::HID { | 13 | namespace Service::HID { |
| 15 | 14 | ||
| @@ -270,7 +269,7 @@ void IHidSystemServer::GetLastActiveNpad(HLERequestContext& ctx) { | |||
| 270 | 269 | ||
| 271 | IPC::ResponseBuilder rb{ctx, 3}; | 270 | IPC::ResponseBuilder rb{ctx, 3}; |
| 272 | rb.Push(ResultSuccess); | 271 | rb.Push(ResultSuccess); |
| 273 | rb.PushEnum(system.HIDCore().GetLastActiveController()); | 272 | rb.Push(0); // Dont forget to fix this |
| 274 | } | 273 | } |
| 275 | 274 | ||
| 276 | void IHidSystemServer::ApplyNpadSystemCommonPolicyFull(HLERequestContext& ctx) { | 275 | void IHidSystemServer::ApplyNpadSystemCommonPolicyFull(HLERequestContext& ctx) { |
diff --git a/src/core/hle/service/hid/hidbus.cpp b/src/core/hle/service/hid/hidbus.cpp index ffa7e144d..46f503d38 100644 --- a/src/core/hle/service/hid/hidbus.cpp +++ b/src/core/hle/service/hid/hidbus.cpp | |||
| @@ -5,18 +5,18 @@ | |||
| 5 | #include "common/settings.h" | 5 | #include "common/settings.h" |
| 6 | #include "core/core.h" | 6 | #include "core/core.h" |
| 7 | #include "core/core_timing.h" | 7 | #include "core/core_timing.h" |
| 8 | #include "core/hid/hid_types.h" | ||
| 9 | #include "core/hle/kernel/k_event.h" | 8 | #include "core/hle/kernel/k_event.h" |
| 10 | #include "core/hle/kernel/k_readable_event.h" | 9 | #include "core/hle/kernel/k_readable_event.h" |
| 11 | #include "core/hle/kernel/k_shared_memory.h" | 10 | #include "core/hle/kernel/k_shared_memory.h" |
| 12 | #include "core/hle/kernel/k_transfer_memory.h" | 11 | #include "core/hle/kernel/k_transfer_memory.h" |
| 13 | #include "core/hle/service/hid/hidbus.h" | 12 | #include "core/hle/service/hid/hidbus.h" |
| 14 | #include "core/hle/service/hid/hidbus/ringcon.h" | ||
| 15 | #include "core/hle/service/hid/hidbus/starlink.h" | ||
| 16 | #include "core/hle/service/hid/hidbus/stubbed.h" | ||
| 17 | #include "core/hle/service/ipc_helpers.h" | 13 | #include "core/hle/service/ipc_helpers.h" |
| 18 | #include "core/hle/service/service.h" | 14 | #include "core/hle/service/service.h" |
| 19 | #include "core/memory.h" | 15 | #include "core/memory.h" |
| 16 | #include "hid_core/hid_types.h" | ||
| 17 | #include "hid_core/hidbus/ringcon.h" | ||
| 18 | #include "hid_core/hidbus/starlink.h" | ||
| 19 | #include "hid_core/hidbus/stubbed.h" | ||
| 20 | 20 | ||
| 21 | namespace Service::HID { | 21 | namespace Service::HID { |
| 22 | // (15ms, 66Hz) | 22 | // (15ms, 66Hz) |
diff --git a/src/core/hle/service/hid/hidbus.h b/src/core/hle/service/hid/hidbus.h index 85a1df133..05f62f634 100644 --- a/src/core/hle/service/hid/hidbus.h +++ b/src/core/hle/service/hid/hidbus.h | |||
| @@ -5,9 +5,9 @@ | |||
| 5 | 5 | ||
| 6 | #include <functional> | 6 | #include <functional> |
| 7 | 7 | ||
| 8 | #include "core/hle/service/hid/hidbus/hidbus_base.h" | ||
| 9 | #include "core/hle/service/kernel_helpers.h" | 8 | #include "core/hle/service/kernel_helpers.h" |
| 10 | #include "core/hle/service/service.h" | 9 | #include "core/hle/service/service.h" |
| 10 | #include "hid_core/hidbus/hidbus_base.h" | ||
| 11 | 11 | ||
| 12 | namespace Core::Timing { | 12 | namespace Core::Timing { |
| 13 | struct EventType; | 13 | struct EventType; |
diff --git a/src/core/hle/service/hid/irs.cpp b/src/core/hle/service/hid/irs.cpp index 05ed31273..18e544f2f 100644 --- a/src/core/hle/service/hid/irs.cpp +++ b/src/core/hle/service/hid/irs.cpp | |||
| @@ -6,22 +6,22 @@ | |||
| 6 | 6 | ||
| 7 | #include "core/core.h" | 7 | #include "core/core.h" |
| 8 | #include "core/core_timing.h" | 8 | #include "core/core_timing.h" |
| 9 | #include "core/hid/emulated_controller.h" | ||
| 10 | #include "core/hid/hid_core.h" | ||
| 11 | #include "core/hle/kernel/k_shared_memory.h" | 9 | #include "core/hle/kernel/k_shared_memory.h" |
| 12 | #include "core/hle/kernel/k_transfer_memory.h" | 10 | #include "core/hle/kernel/k_transfer_memory.h" |
| 13 | #include "core/hle/kernel/kernel.h" | 11 | #include "core/hle/kernel/kernel.h" |
| 14 | #include "core/hle/service/hid/errors.h" | ||
| 15 | #include "core/hle/service/hid/hid_util.h" | ||
| 16 | #include "core/hle/service/hid/irs.h" | 12 | #include "core/hle/service/hid/irs.h" |
| 17 | #include "core/hle/service/hid/irsensor/clustering_processor.h" | ||
| 18 | #include "core/hle/service/hid/irsensor/image_transfer_processor.h" | ||
| 19 | #include "core/hle/service/hid/irsensor/ir_led_processor.h" | ||
| 20 | #include "core/hle/service/hid/irsensor/moment_processor.h" | ||
| 21 | #include "core/hle/service/hid/irsensor/pointing_processor.h" | ||
| 22 | #include "core/hle/service/hid/irsensor/tera_plugin_processor.h" | ||
| 23 | #include "core/hle/service/ipc_helpers.h" | 13 | #include "core/hle/service/ipc_helpers.h" |
| 24 | #include "core/memory.h" | 14 | #include "core/memory.h" |
| 15 | #include "hid_core/frontend/emulated_controller.h" | ||
| 16 | #include "hid_core/hid_core.h" | ||
| 17 | #include "hid_core/hid_result.h" | ||
| 18 | #include "hid_core/hid_util.h" | ||
| 19 | #include "hid_core/irsensor/clustering_processor.h" | ||
| 20 | #include "hid_core/irsensor/image_transfer_processor.h" | ||
| 21 | #include "hid_core/irsensor/ir_led_processor.h" | ||
| 22 | #include "hid_core/irsensor/moment_processor.h" | ||
| 23 | #include "hid_core/irsensor/pointing_processor.h" | ||
| 24 | #include "hid_core/irsensor/tera_plugin_processor.h" | ||
| 25 | 25 | ||
| 26 | namespace Service::IRS { | 26 | namespace Service::IRS { |
| 27 | 27 | ||
diff --git a/src/core/hle/service/hid/irs.h b/src/core/hle/service/hid/irs.h index c8e6dab17..06b7279ee 100644 --- a/src/core/hle/service/hid/irs.h +++ b/src/core/hle/service/hid/irs.h | |||
| @@ -4,10 +4,10 @@ | |||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "core/core.h" | 6 | #include "core/core.h" |
| 7 | #include "core/hid/hid_types.h" | ||
| 8 | #include "core/hid/irs_types.h" | ||
| 9 | #include "core/hle/service/hid/irsensor/processor_base.h" | ||
| 10 | #include "core/hle/service/service.h" | 7 | #include "core/hle/service/service.h" |
| 8 | #include "hid_core/hid_types.h" | ||
| 9 | #include "hid_core/irsensor/irs_types.h" | ||
| 10 | #include "hid_core/irsensor/processor_base.h" | ||
| 11 | 11 | ||
| 12 | namespace Core::HID { | 12 | namespace Core::HID { |
| 13 | class EmulatedController; | 13 | class EmulatedController; |
diff --git a/src/core/hle/service/nfc/common/device.cpp b/src/core/hle/service/nfc/common/device.cpp index f97e5b44c..b37fb6da3 100644 --- a/src/core/hle/service/nfc/common/device.cpp +++ b/src/core/hle/service/nfc/common/device.cpp | |||
| @@ -22,9 +22,6 @@ | |||
| 22 | #include "common/string_util.h" | 22 | #include "common/string_util.h" |
| 23 | #include "common/tiny_mt.h" | 23 | #include "common/tiny_mt.h" |
| 24 | #include "core/core.h" | 24 | #include "core/core.h" |
| 25 | #include "core/hid/emulated_controller.h" | ||
| 26 | #include "core/hid/hid_core.h" | ||
| 27 | #include "core/hid/hid_types.h" | ||
| 28 | #include "core/hle/kernel/k_event.h" | 25 | #include "core/hle/kernel/k_event.h" |
| 29 | #include "core/hle/service/ipc_helpers.h" | 26 | #include "core/hle/service/ipc_helpers.h" |
| 30 | #include "core/hle/service/mii/mii_manager.h" | 27 | #include "core/hle/service/mii/mii_manager.h" |
| @@ -33,6 +30,9 @@ | |||
| 33 | #include "core/hle/service/nfc/mifare_result.h" | 30 | #include "core/hle/service/nfc/mifare_result.h" |
| 34 | #include "core/hle/service/nfc/nfc_result.h" | 31 | #include "core/hle/service/nfc/nfc_result.h" |
| 35 | #include "core/hle/service/time/time_manager.h" | 32 | #include "core/hle/service/time/time_manager.h" |
| 33 | #include "hid_core/frontend/emulated_controller.h" | ||
| 34 | #include "hid_core/hid_core.h" | ||
| 35 | #include "hid_core/hid_types.h" | ||
| 36 | 36 | ||
| 37 | namespace Service::NFC { | 37 | namespace Service::NFC { |
| 38 | NfcDevice::NfcDevice(Core::HID::NpadIdType npad_id_, Core::System& system_, | 38 | NfcDevice::NfcDevice(Core::HID::NpadIdType npad_id_, Core::System& system_, |
diff --git a/src/core/hle/service/nfc/common/device_manager.cpp b/src/core/hle/service/nfc/common/device_manager.cpp index ad534177d..44f651b87 100644 --- a/src/core/hle/service/nfc/common/device_manager.cpp +++ b/src/core/hle/service/nfc/common/device_manager.cpp | |||
| @@ -5,15 +5,15 @@ | |||
| 5 | 5 | ||
| 6 | #include "common/logging/log.h" | 6 | #include "common/logging/log.h" |
| 7 | #include "core/core.h" | 7 | #include "core/core.h" |
| 8 | #include "core/hid/hid_types.h" | ||
| 9 | #include "core/hle/kernel/k_event.h" | 8 | #include "core/hle/kernel/k_event.h" |
| 10 | #include "core/hle/service/hid/hid_util.h" | ||
| 11 | #include "core/hle/service/ipc_helpers.h" | 9 | #include "core/hle/service/ipc_helpers.h" |
| 12 | #include "core/hle/service/nfc/common/device.h" | 10 | #include "core/hle/service/nfc/common/device.h" |
| 13 | #include "core/hle/service/nfc/common/device_manager.h" | 11 | #include "core/hle/service/nfc/common/device_manager.h" |
| 14 | #include "core/hle/service/nfc/nfc_result.h" | 12 | #include "core/hle/service/nfc/nfc_result.h" |
| 15 | #include "core/hle/service/time/clock_types.h" | 13 | #include "core/hle/service/time/clock_types.h" |
| 16 | #include "core/hle/service/time/time_manager.h" | 14 | #include "core/hle/service/time/time_manager.h" |
| 15 | #include "hid_core/hid_types.h" | ||
| 16 | #include "hid_core/hid_util.h" | ||
| 17 | 17 | ||
| 18 | namespace Service::NFC { | 18 | namespace Service::NFC { |
| 19 | 19 | ||
diff --git a/src/core/hle/service/nfc/common/device_manager.h b/src/core/hle/service/nfc/common/device_manager.h index c9f038e32..f02bdccf5 100644 --- a/src/core/hle/service/nfc/common/device_manager.h +++ b/src/core/hle/service/nfc/common/device_manager.h | |||
| @@ -8,13 +8,13 @@ | |||
| 8 | #include <optional> | 8 | #include <optional> |
| 9 | #include <span> | 9 | #include <span> |
| 10 | 10 | ||
| 11 | #include "core/hid/hid_types.h" | ||
| 12 | #include "core/hle/service/kernel_helpers.h" | 11 | #include "core/hle/service/kernel_helpers.h" |
| 13 | #include "core/hle/service/nfc/mifare_types.h" | 12 | #include "core/hle/service/nfc/mifare_types.h" |
| 14 | #include "core/hle/service/nfc/nfc_types.h" | 13 | #include "core/hle/service/nfc/nfc_types.h" |
| 15 | #include "core/hle/service/nfp/nfp_types.h" | 14 | #include "core/hle/service/nfp/nfp_types.h" |
| 16 | #include "core/hle/service/service.h" | 15 | #include "core/hle/service/service.h" |
| 17 | #include "core/hle/service/time/clock_types.h" | 16 | #include "core/hle/service/time/clock_types.h" |
| 17 | #include "hid_core/hid_types.h" | ||
| 18 | 18 | ||
| 19 | namespace Service::NFC { | 19 | namespace Service::NFC { |
| 20 | class NfcDevice; | 20 | class NfcDevice; |
diff --git a/src/core/hle/service/nfc/nfc_interface.cpp b/src/core/hle/service/nfc/nfc_interface.cpp index 179c7ba2c..a71cf74b8 100644 --- a/src/core/hle/service/nfc/nfc_interface.cpp +++ b/src/core/hle/service/nfc/nfc_interface.cpp | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | 3 | ||
| 4 | #include "common/logging/log.h" | 4 | #include "common/logging/log.h" |
| 5 | #include "core/core.h" | 5 | #include "core/core.h" |
| 6 | #include "core/hid/hid_types.h" | ||
| 7 | #include "core/hle/kernel/k_event.h" | 6 | #include "core/hle/kernel/k_event.h" |
| 8 | #include "core/hle/service/ipc_helpers.h" | 7 | #include "core/hle/service/ipc_helpers.h" |
| 9 | #include "core/hle/service/nfc/common/device.h" | 8 | #include "core/hle/service/nfc/common/device.h" |
| @@ -15,6 +14,7 @@ | |||
| 15 | #include "core/hle/service/nfc/nfc_types.h" | 14 | #include "core/hle/service/nfc/nfc_types.h" |
| 16 | #include "core/hle/service/nfp/nfp_result.h" | 15 | #include "core/hle/service/nfp/nfp_result.h" |
| 17 | #include "core/hle/service/time/clock_types.h" | 16 | #include "core/hle/service/time/clock_types.h" |
| 17 | #include "hid_core/hid_types.h" | ||
| 18 | 18 | ||
| 19 | namespace Service::NFC { | 19 | namespace Service::NFC { |
| 20 | 20 | ||
diff --git a/src/core/hle/service/nfp/nfp_interface.cpp b/src/core/hle/service/nfp/nfp_interface.cpp index 34ef9d82d..5ba6d1742 100644 --- a/src/core/hle/service/nfp/nfp_interface.cpp +++ b/src/core/hle/service/nfp/nfp_interface.cpp | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | 3 | ||
| 4 | #include "common/logging/log.h" | 4 | #include "common/logging/log.h" |
| 5 | #include "core/core.h" | 5 | #include "core/core.h" |
| 6 | #include "core/hid/hid_types.h" | ||
| 7 | #include "core/hle/kernel/k_event.h" | 6 | #include "core/hle/kernel/k_event.h" |
| 8 | #include "core/hle/service/ipc_helpers.h" | 7 | #include "core/hle/service/ipc_helpers.h" |
| 9 | #include "core/hle/service/nfc/common/device.h" | 8 | #include "core/hle/service/nfc/common/device.h" |
| @@ -12,6 +11,7 @@ | |||
| 12 | #include "core/hle/service/nfp/nfp_interface.h" | 11 | #include "core/hle/service/nfp/nfp_interface.h" |
| 13 | #include "core/hle/service/nfp/nfp_result.h" | 12 | #include "core/hle/service/nfp/nfp_result.h" |
| 14 | #include "core/hle/service/nfp/nfp_types.h" | 13 | #include "core/hle/service/nfp/nfp_types.h" |
| 14 | #include "hid_core/hid_types.h" | ||
| 15 | 15 | ||
| 16 | namespace Service::NFP { | 16 | namespace Service::NFP { |
| 17 | 17 | ||
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp index 7bc5b5ae5..96fa7fa3a 100644 --- a/src/core/memory/cheat_engine.cpp +++ b/src/core/memory/cheat_engine.cpp | |||
| @@ -9,12 +9,12 @@ | |||
| 9 | #include "core/core_timing.h" | 9 | #include "core/core_timing.h" |
| 10 | #include "core/hle/kernel/k_page_table.h" | 10 | #include "core/hle/kernel/k_page_table.h" |
| 11 | #include "core/hle/kernel/k_process.h" | 11 | #include "core/hle/kernel/k_process.h" |
| 12 | #include "core/hle/service/hid/controllers/npad.h" | ||
| 13 | #include "core/hle/service/hid/hid_server.h" | 12 | #include "core/hle/service/hid/hid_server.h" |
| 14 | #include "core/hle/service/hid/resource_manager.h" | ||
| 15 | #include "core/hle/service/sm/sm.h" | 13 | #include "core/hle/service/sm/sm.h" |
| 16 | #include "core/memory.h" | 14 | #include "core/memory.h" |
| 17 | #include "core/memory/cheat_engine.h" | 15 | #include "core/memory/cheat_engine.h" |
| 16 | #include "hid_core/resource_manager.h" | ||
| 17 | #include "hid_core/resources/npad/npad.h" | ||
| 18 | 18 | ||
| 19 | namespace Core::Memory { | 19 | namespace Core::Memory { |
| 20 | namespace { | 20 | namespace { |
diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cpp index 20de91ff4..9eb4799a6 100644 --- a/src/frontend_common/config.cpp +++ b/src/frontend_common/config.cpp | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | #include "config.h" | 11 | #include "config.h" |
| 12 | #include "core/core.h" | 12 | #include "core/core.h" |
| 13 | #include "core/hle/service/acc/profile_manager.h" | 13 | #include "core/hle/service/acc/profile_manager.h" |
| 14 | #include "core/hle/service/hid/controllers/npad.h" | 14 | #include "hid_core/resources/npad/npad.h" |
| 15 | #include "network/network.h" | 15 | #include "network/network.h" |
| 16 | 16 | ||
| 17 | #include <boost/algorithm/string/replace.hpp> | 17 | #include <boost/algorithm/string/replace.hpp> |
diff --git a/src/hid_core/CMakeLists.txt b/src/hid_core/CMakeLists.txt new file mode 100644 index 000000000..cce4e6857 --- /dev/null +++ b/src/hid_core/CMakeLists.txt | |||
| @@ -0,0 +1,126 @@ | |||
| 1 | # SPDX-FileCopyrightText: 2018 yuzu Emulator Project | ||
| 2 | # SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | add_library(hid_core STATIC | ||
| 5 | frontend/emulated_console.cpp | ||
| 6 | frontend/emulated_console.h | ||
| 7 | frontend/emulated_controller.cpp | ||
| 8 | frontend/emulated_controller.h | ||
| 9 | frontend/emulated_devices.cpp | ||
| 10 | frontend/emulated_devices.h | ||
| 11 | frontend/input_converter.cpp | ||
| 12 | frontend/input_converter.h | ||
| 13 | frontend/input_interpreter.cpp | ||
| 14 | frontend/input_interpreter.h | ||
| 15 | frontend/motion_input.cpp | ||
| 16 | frontend/motion_input.h | ||
| 17 | hidbus/hidbus_base.cpp | ||
| 18 | hidbus/hidbus_base.h | ||
| 19 | hidbus/ringcon.cpp | ||
| 20 | hidbus/ringcon.h | ||
| 21 | hidbus/starlink.cpp | ||
| 22 | hidbus/starlink.h | ||
| 23 | hidbus/stubbed.cpp | ||
| 24 | hidbus/stubbed.h | ||
| 25 | irsensor/clustering_processor.cpp | ||
| 26 | irsensor/clustering_processor.h | ||
| 27 | irsensor/image_transfer_processor.cpp | ||
| 28 | irsensor/image_transfer_processor.h | ||
| 29 | irsensor/ir_led_processor.cpp | ||
| 30 | irsensor/ir_led_processor.h | ||
| 31 | irsensor/moment_processor.cpp | ||
| 32 | irsensor/moment_processor.h | ||
| 33 | irsensor/pointing_processor.cpp | ||
| 34 | irsensor/pointing_processor.h | ||
| 35 | irsensor/processor_base.cpp | ||
| 36 | irsensor/processor_base.h | ||
| 37 | irsensor/tera_plugin_processor.cpp | ||
| 38 | irsensor/tera_plugin_processor.h | ||
| 39 | resources/debug_pad/debug_pad.cpp | ||
| 40 | resources/debug_pad/debug_pad.h | ||
| 41 | resources/debug_pad/debug_pad_types.h | ||
| 42 | resources/digitizer/digitizer.cpp | ||
| 43 | resources/digitizer/digitizer.h | ||
| 44 | resources/keyboard/keyboard.cpp | ||
| 45 | resources/keyboard/keyboard.h | ||
| 46 | resources/keyboard/keyboard_types.h | ||
| 47 | resources/mouse/debug_mouse.cpp | ||
| 48 | resources/mouse/debug_mouse.h | ||
| 49 | resources/mouse/mouse.cpp | ||
| 50 | resources/mouse/mouse.h | ||
| 51 | resources/mouse/mouse_types.h | ||
| 52 | resources/npad/npad.cpp | ||
| 53 | resources/npad/npad.h | ||
| 54 | resources/npad/npad_data.cpp | ||
| 55 | resources/npad/npad_data.h | ||
| 56 | resources/npad/npad_resource.cpp | ||
| 57 | resources/npad/npad_resource.h | ||
| 58 | resources/npad/npad_types.h | ||
| 59 | resources/palma/palma.cpp | ||
| 60 | resources/palma/palma.h | ||
| 61 | resources/six_axis/console_six_axis.cpp | ||
| 62 | resources/six_axis/console_six_axis.h | ||
| 63 | resources/six_axis/seven_six_axis.cpp | ||
| 64 | resources/six_axis/seven_six_axis.h | ||
| 65 | resources/six_axis/six_axis.cpp | ||
| 66 | resources/six_axis/six_axis.h | ||
| 67 | resources/system_buttons/capture_button.cpp | ||
| 68 | resources/system_buttons/capture_button.h | ||
| 69 | resources/system_buttons/home_button.cpp | ||
| 70 | resources/system_buttons/home_button.h | ||
| 71 | resources/system_buttons/sleep_button.cpp | ||
| 72 | resources/system_buttons/sleep_button.h | ||
| 73 | resources/touch_screen/gesture.cpp | ||
| 74 | resources/touch_screen/gesture.h | ||
| 75 | resources/touch_screen/gesture_types.h | ||
| 76 | resources/touch_screen/touch_screen.cpp | ||
| 77 | resources/touch_screen/touch_screen.h | ||
| 78 | resources/touch_screen/touch_types.h | ||
| 79 | resources/unique_pad/unique_pad.cpp | ||
| 80 | resources/unique_pad/unique_pad.h | ||
| 81 | resources/applet_resource.cpp | ||
| 82 | resources/applet_resource.h | ||
| 83 | resources/controller_base.cpp | ||
| 84 | resources/controller_base.h | ||
| 85 | resources/hid_firmware_settings.cpp | ||
| 86 | resources/hid_firmware_settings.h | ||
| 87 | resources/irs_ring_lifo.h | ||
| 88 | resources/ring_lifo.h | ||
| 89 | resources/shared_memory_format.h | ||
| 90 | resources/shared_memory_holder.cpp | ||
| 91 | resources/shared_memory_holder.h | ||
| 92 | hid_core.cpp | ||
| 93 | hid_core.h | ||
| 94 | hid_result.h | ||
| 95 | hid_types.h | ||
| 96 | hid_util.h | ||
| 97 | precompiled_headers.h | ||
| 98 | resource_manager.cpp | ||
| 99 | resource_manager.h | ||
| 100 | ) | ||
| 101 | |||
| 102 | if (MSVC) | ||
| 103 | target_compile_options(hid_core PRIVATE | ||
| 104 | /we4242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data | ||
| 105 | /we4244 # 'conversion': conversion from 'type1' to 'type2', possible loss of data | ||
| 106 | /we4245 # 'conversion': conversion from 'type1' to 'type2', signed/unsigned mismatch | ||
| 107 | /we4254 # 'operator': conversion from 'type1:field_bits' to 'type2:field_bits', possible loss of data | ||
| 108 | /we4800 # Implicit conversion from 'type' to bool. Possible information loss | ||
| 109 | ) | ||
| 110 | else() | ||
| 111 | target_compile_options(hid_core PRIVATE | ||
| 112 | -Werror=conversion | ||
| 113 | |||
| 114 | -Wno-sign-conversion | ||
| 115 | -Wno-cast-function-type | ||
| 116 | |||
| 117 | $<$<CXX_COMPILER_ID:Clang>:-fsized-deallocation> | ||
| 118 | ) | ||
| 119 | endif() | ||
| 120 | |||
| 121 | create_target_directory_groups(hid_core) | ||
| 122 | target_link_libraries(hid_core PUBLIC core) | ||
| 123 | |||
| 124 | if (YUZU_USE_PRECOMPILED_HEADERS) | ||
| 125 | target_precompile_headers(hid_core PRIVATE precompiled_headers.h) | ||
| 126 | endif() | ||
diff --git a/src/core/hid/emulated_console.cpp b/src/hid_core/frontend/emulated_console.cpp index b4afd930e..114c22fb7 100644 --- a/src/core/hid/emulated_console.cpp +++ b/src/hid_core/frontend/emulated_console.cpp | |||
| @@ -2,8 +2,8 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "common/settings.h" | 4 | #include "common/settings.h" |
| 5 | #include "core/hid/emulated_console.h" | 5 | #include "hid_core/frontend/emulated_console.h" |
| 6 | #include "core/hid/input_converter.h" | 6 | #include "hid_core/frontend/input_converter.h" |
| 7 | 7 | ||
| 8 | namespace Core::HID { | 8 | namespace Core::HID { |
| 9 | EmulatedConsole::EmulatedConsole() = default; | 9 | EmulatedConsole::EmulatedConsole() = default; |
diff --git a/src/core/hid/emulated_console.h b/src/hid_core/frontend/emulated_console.h index fae15a556..847551395 100644 --- a/src/core/hid/emulated_console.h +++ b/src/hid_core/frontend/emulated_console.h | |||
| @@ -17,8 +17,8 @@ | |||
| 17 | #include "common/point.h" | 17 | #include "common/point.h" |
| 18 | #include "common/quaternion.h" | 18 | #include "common/quaternion.h" |
| 19 | #include "common/vector_math.h" | 19 | #include "common/vector_math.h" |
| 20 | #include "core/hid/hid_types.h" | 20 | #include "hid_core/frontend/motion_input.h" |
| 21 | #include "core/hid/motion_input.h" | 21 | #include "hid_core/hid_types.h" |
| 22 | 22 | ||
| 23 | namespace Core::HID { | 23 | namespace Core::HID { |
| 24 | static constexpr std::size_t MaxTouchDevices = 32; | 24 | static constexpr std::size_t MaxTouchDevices = 32; |
diff --git a/src/core/hid/emulated_controller.cpp b/src/hid_core/frontend/emulated_controller.cpp index a6e681e15..3d2d1e9f9 100644 --- a/src/core/hid/emulated_controller.cpp +++ b/src/hid_core/frontend/emulated_controller.cpp | |||
| @@ -6,9 +6,9 @@ | |||
| 6 | 6 | ||
| 7 | #include "common/polyfill_ranges.h" | 7 | #include "common/polyfill_ranges.h" |
| 8 | #include "common/thread.h" | 8 | #include "common/thread.h" |
| 9 | #include "core/hid/emulated_controller.h" | 9 | #include "hid_core/frontend/emulated_controller.h" |
| 10 | #include "core/hid/input_converter.h" | 10 | #include "hid_core/frontend/input_converter.h" |
| 11 | #include "core/hle/service/hid/hid_util.h" | 11 | #include "hid_core/hid_util.h" |
| 12 | 12 | ||
| 13 | namespace Core::HID { | 13 | namespace Core::HID { |
| 14 | constexpr s32 HID_JOYSTICK_MAX = 0x7fff; | 14 | constexpr s32 HID_JOYSTICK_MAX = 0x7fff; |
diff --git a/src/core/hid/emulated_controller.h b/src/hid_core/frontend/emulated_controller.h index d6e20ab66..94798164d 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/hid_core/frontend/emulated_controller.h | |||
| @@ -15,9 +15,9 @@ | |||
| 15 | #include "common/param_package.h" | 15 | #include "common/param_package.h" |
| 16 | #include "common/settings.h" | 16 | #include "common/settings.h" |
| 17 | #include "common/vector_math.h" | 17 | #include "common/vector_math.h" |
| 18 | #include "core/hid/hid_types.h" | 18 | #include "hid_core/frontend/motion_input.h" |
| 19 | #include "core/hid/irs_types.h" | 19 | #include "hid_core/hid_types.h" |
| 20 | #include "core/hid/motion_input.h" | 20 | #include "hid_core/irsensor/irs_types.h" |
| 21 | 21 | ||
| 22 | namespace Core::HID { | 22 | namespace Core::HID { |
| 23 | const std::size_t max_emulated_controllers = 2; | 23 | const std::size_t max_emulated_controllers = 2; |
diff --git a/src/core/hid/emulated_devices.cpp b/src/hid_core/frontend/emulated_devices.cpp index 8e165dded..a827aa9b7 100644 --- a/src/core/hid/emulated_devices.cpp +++ b/src/hid_core/frontend/emulated_devices.cpp | |||
| @@ -4,8 +4,8 @@ | |||
| 4 | #include <algorithm> | 4 | #include <algorithm> |
| 5 | #include <fmt/format.h> | 5 | #include <fmt/format.h> |
| 6 | 6 | ||
| 7 | #include "core/hid/emulated_devices.h" | 7 | #include "hid_core/frontend/emulated_devices.h" |
| 8 | #include "core/hid/input_converter.h" | 8 | #include "hid_core/frontend/input_converter.h" |
| 9 | 9 | ||
| 10 | namespace Core::HID { | 10 | namespace Core::HID { |
| 11 | 11 | ||
diff --git a/src/core/hid/emulated_devices.h b/src/hid_core/frontend/emulated_devices.h index 5eab693e4..b2e57318c 100644 --- a/src/core/hid/emulated_devices.h +++ b/src/hid_core/frontend/emulated_devices.h | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | #include "common/input.h" | 14 | #include "common/input.h" |
| 15 | #include "common/param_package.h" | 15 | #include "common/param_package.h" |
| 16 | #include "common/settings.h" | 16 | #include "common/settings.h" |
| 17 | #include "core/hid/hid_types.h" | 17 | #include "hid_core/hid_types.h" |
| 18 | 18 | ||
| 19 | namespace Core::HID { | 19 | namespace Core::HID { |
| 20 | using KeyboardDevices = std::array<std::unique_ptr<Common::Input::InputDevice>, | 20 | using KeyboardDevices = std::array<std::unique_ptr<Common::Input::InputDevice>, |
diff --git a/src/core/hid/input_converter.cpp b/src/hid_core/frontend/input_converter.cpp index a05716fd8..f245a3f76 100644 --- a/src/core/hid/input_converter.cpp +++ b/src/hid_core/frontend/input_converter.cpp | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | #include <random> | 5 | #include <random> |
| 6 | 6 | ||
| 7 | #include "common/input.h" | 7 | #include "common/input.h" |
| 8 | #include "core/hid/input_converter.h" | 8 | #include "hid_core/frontend/input_converter.h" |
| 9 | 9 | ||
| 10 | namespace Core::HID { | 10 | namespace Core::HID { |
| 11 | 11 | ||
diff --git a/src/core/hid/input_converter.h b/src/hid_core/frontend/input_converter.h index c51c03e57..c51c03e57 100644 --- a/src/core/hid/input_converter.h +++ b/src/hid_core/frontend/input_converter.h | |||
diff --git a/src/core/hid/input_interpreter.cpp b/src/hid_core/frontend/input_interpreter.cpp index 072f38a68..b6c8d8c5d 100644 --- a/src/core/hid/input_interpreter.cpp +++ b/src/hid_core/frontend/input_interpreter.cpp | |||
| @@ -2,12 +2,12 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/core.h" | 4 | #include "core/core.h" |
| 5 | #include "core/hid/hid_types.h" | ||
| 6 | #include "core/hid/input_interpreter.h" | ||
| 7 | #include "core/hle/service/hid/controllers/npad.h" | ||
| 8 | #include "core/hle/service/hid/hid_server.h" | 5 | #include "core/hle/service/hid/hid_server.h" |
| 9 | #include "core/hle/service/hid/resource_manager.h" | ||
| 10 | #include "core/hle/service/sm/sm.h" | 6 | #include "core/hle/service/sm/sm.h" |
| 7 | #include "hid_core/frontend/input_interpreter.h" | ||
| 8 | #include "hid_core/hid_types.h" | ||
| 9 | #include "hid_core/resource_manager.h" | ||
| 10 | #include "hid_core/resources/npad/npad.h" | ||
| 11 | 11 | ||
| 12 | InputInterpreter::InputInterpreter(Core::System& system) | 12 | InputInterpreter::InputInterpreter(Core::System& system) |
| 13 | : npad{system.ServiceManager() | 13 | : npad{system.ServiceManager() |
diff --git a/src/core/hid/input_interpreter.h b/src/hid_core/frontend/input_interpreter.h index 3569aac93..3569aac93 100644 --- a/src/core/hid/input_interpreter.h +++ b/src/hid_core/frontend/input_interpreter.h | |||
diff --git a/src/core/hid/motion_input.cpp b/src/hid_core/frontend/motion_input.cpp index f56f2ae1d..417cd03f9 100644 --- a/src/core/hid/motion_input.cpp +++ b/src/hid_core/frontend/motion_input.cpp | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | #include <cmath> | 4 | #include <cmath> |
| 5 | 5 | ||
| 6 | #include "common/math_util.h" | 6 | #include "common/math_util.h" |
| 7 | #include "core/hid/motion_input.h" | 7 | #include "hid_core/frontend/motion_input.h" |
| 8 | 8 | ||
| 9 | namespace Core::HID { | 9 | namespace Core::HID { |
| 10 | 10 | ||
diff --git a/src/core/hid/motion_input.h b/src/hid_core/frontend/motion_input.h index 11678983d..11678983d 100644 --- a/src/core/hid/motion_input.h +++ b/src/hid_core/frontend/motion_input.h | |||
diff --git a/src/core/hid/hid_core.cpp b/src/hid_core/hid_core.cpp index 2cf25a870..410c84afb 100644 --- a/src/core/hid/hid_core.cpp +++ b/src/hid_core/hid_core.cpp | |||
| @@ -2,11 +2,11 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "common/assert.h" | 4 | #include "common/assert.h" |
| 5 | #include "core/hid/emulated_console.h" | 5 | #include "hid_core/frontend/emulated_console.h" |
| 6 | #include "core/hid/emulated_controller.h" | 6 | #include "hid_core/frontend/emulated_controller.h" |
| 7 | #include "core/hid/emulated_devices.h" | 7 | #include "hid_core/frontend/emulated_devices.h" |
| 8 | #include "core/hid/hid_core.h" | 8 | #include "hid_core/hid_core.h" |
| 9 | #include "core/hle/service/hid/hid_util.h" | 9 | #include "hid_core/hid_util.h" |
| 10 | 10 | ||
| 11 | namespace Core::HID { | 11 | namespace Core::HID { |
| 12 | 12 | ||
diff --git a/src/core/hid/hid_core.h b/src/hid_core/hid_core.h index 80abab18b..dae29c506 100644 --- a/src/core/hid/hid_core.h +++ b/src/hid_core/hid_core.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | #include <memory> | 6 | #include <memory> |
| 7 | 7 | ||
| 8 | #include "common/common_funcs.h" | 8 | #include "common/common_funcs.h" |
| 9 | #include "core/hid/hid_types.h" | 9 | #include "hid_core/hid_types.h" |
| 10 | 10 | ||
| 11 | namespace Core::HID { | 11 | namespace Core::HID { |
| 12 | class EmulatedConsole; | 12 | class EmulatedConsole; |
diff --git a/src/core/hle/service/hid/errors.h b/src/hid_core/hid_result.h index bb14aa61e..bb14aa61e 100644 --- a/src/core/hle/service/hid/errors.h +++ b/src/hid_core/hid_result.h | |||
diff --git a/src/core/hid/hid_types.h b/src/hid_core/hid_types.h index a81ed6af0..a81ed6af0 100644 --- a/src/core/hid/hid_types.h +++ b/src/hid_core/hid_types.h | |||
diff --git a/src/core/hle/service/hid/hid_util.h b/src/hid_core/hid_util.h index 6a2ed287a..94ff2d23a 100644 --- a/src/core/hle/service/hid/hid_util.h +++ b/src/hid_core/hid_util.h | |||
| @@ -3,8 +3,8 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "core/hid/hid_types.h" | 6 | #include "hid_core/hid_result.h" |
| 7 | #include "core/hle/service/hid/errors.h" | 7 | #include "hid_core/hid_types.h" |
| 8 | 8 | ||
| 9 | namespace Service::HID { | 9 | namespace Service::HID { |
| 10 | 10 | ||
diff --git a/src/core/hle/service/hid/hidbus/hidbus_base.cpp b/src/hid_core/hidbus/hidbus_base.cpp index 8c44f93e8..632bb173b 100644 --- a/src/core/hle/service/hid/hidbus/hidbus_base.cpp +++ b/src/hid_core/hidbus/hidbus_base.cpp | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hid/hid_core.h" | ||
| 5 | #include "core/hle/kernel/k_event.h" | 4 | #include "core/hle/kernel/k_event.h" |
| 6 | #include "core/hle/kernel/k_readable_event.h" | 5 | #include "core/hle/kernel/k_readable_event.h" |
| 7 | #include "core/hle/service/hid/hidbus/hidbus_base.h" | ||
| 8 | #include "core/hle/service/kernel_helpers.h" | 6 | #include "core/hle/service/kernel_helpers.h" |
| 7 | #include "hid_core/hid_core.h" | ||
| 8 | #include "hid_core/hidbus/hidbus_base.h" | ||
| 9 | 9 | ||
| 10 | namespace Service::HID { | 10 | namespace Service::HID { |
| 11 | 11 | ||
diff --git a/src/core/hle/service/hid/hidbus/hidbus_base.h b/src/hid_core/hidbus/hidbus_base.h index ec41684e1..ec41684e1 100644 --- a/src/core/hle/service/hid/hidbus/hidbus_base.h +++ b/src/hid_core/hidbus/hidbus_base.h | |||
diff --git a/src/core/hle/service/hid/hidbus/ringcon.cpp b/src/hid_core/hidbus/ringcon.cpp index 378108012..cedf25c16 100644 --- a/src/core/hle/service/hid/hidbus/ringcon.cpp +++ b/src/hid_core/hidbus/ringcon.cpp | |||
| @@ -2,12 +2,12 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/core.h" | 4 | #include "core/core.h" |
| 5 | #include "core/hid/emulated_controller.h" | ||
| 6 | #include "core/hid/hid_core.h" | ||
| 7 | #include "core/hle/kernel/k_event.h" | 5 | #include "core/hle/kernel/k_event.h" |
| 8 | #include "core/hle/kernel/k_readable_event.h" | 6 | #include "core/hle/kernel/k_readable_event.h" |
| 9 | #include "core/hle/service/hid/hidbus/ringcon.h" | ||
| 10 | #include "core/memory.h" | 7 | #include "core/memory.h" |
| 8 | #include "hid_core/frontend/emulated_controller.h" | ||
| 9 | #include "hid_core/hid_core.h" | ||
| 10 | #include "hid_core/hidbus/ringcon.h" | ||
| 11 | 11 | ||
| 12 | namespace Service::HID { | 12 | namespace Service::HID { |
| 13 | 13 | ||
diff --git a/src/core/hle/service/hid/hidbus/ringcon.h b/src/hid_core/hidbus/ringcon.h index f42f3ea41..0953e8100 100644 --- a/src/core/hle/service/hid/hidbus/ringcon.h +++ b/src/hid_core/hidbus/ringcon.h | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | #include <span> | 7 | #include <span> |
| 8 | 8 | ||
| 9 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 10 | #include "core/hle/service/hid/hidbus/hidbus_base.h" | 10 | #include "hid_core/hidbus/hidbus_base.h" |
| 11 | 11 | ||
| 12 | namespace Core::HID { | 12 | namespace Core::HID { |
| 13 | class EmulatedController; | 13 | class EmulatedController; |
diff --git a/src/core/hle/service/hid/hidbus/starlink.cpp b/src/hid_core/hidbus/starlink.cpp index 36573274e..31b263aa1 100644 --- a/src/core/hle/service/hid/hidbus/starlink.cpp +++ b/src/hid_core/hidbus/starlink.cpp | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hid/emulated_controller.h" | 4 | #include "hid_core/frontend/emulated_controller.h" |
| 5 | #include "core/hid/hid_core.h" | 5 | #include "hid_core/hid_core.h" |
| 6 | #include "core/hle/service/hid/hidbus/starlink.h" | 6 | #include "hid_core/hidbus/starlink.h" |
| 7 | 7 | ||
| 8 | namespace Service::HID { | 8 | namespace Service::HID { |
| 9 | constexpr u8 DEVICE_ID = 0x28; | 9 | constexpr u8 DEVICE_ID = 0x28; |
diff --git a/src/core/hle/service/hid/hidbus/starlink.h b/src/hid_core/hidbus/starlink.h index a276aa88f..ee37763b4 100644 --- a/src/core/hle/service/hid/hidbus/starlink.h +++ b/src/hid_core/hidbus/starlink.h | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 7 | #include "core/hle/service/hid/hidbus/hidbus_base.h" | 7 | #include "hid_core/hidbus/hidbus_base.h" |
| 8 | 8 | ||
| 9 | namespace Core::HID { | 9 | namespace Core::HID { |
| 10 | class EmulatedController; | 10 | class EmulatedController; |
diff --git a/src/core/hle/service/hid/hidbus/stubbed.cpp b/src/hid_core/hidbus/stubbed.cpp index 8160b7218..f16051aa9 100644 --- a/src/core/hle/service/hid/hidbus/stubbed.cpp +++ b/src/hid_core/hidbus/stubbed.cpp | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hid/emulated_controller.h" | 4 | #include "hid_core/frontend/emulated_controller.h" |
| 5 | #include "core/hid/hid_core.h" | 5 | #include "hid_core/hid_core.h" |
| 6 | #include "core/hle/service/hid/hidbus/stubbed.h" | 6 | #include "hid_core/hidbus/stubbed.h" |
| 7 | 7 | ||
| 8 | namespace Service::HID { | 8 | namespace Service::HID { |
| 9 | constexpr u8 DEVICE_ID = 0xFF; | 9 | constexpr u8 DEVICE_ID = 0xFF; |
diff --git a/src/core/hle/service/hid/hidbus/stubbed.h b/src/hid_core/hidbus/stubbed.h index 2e58d42fc..7a711cea0 100644 --- a/src/core/hle/service/hid/hidbus/stubbed.h +++ b/src/hid_core/hidbus/stubbed.h | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 7 | #include "core/hle/service/hid/hidbus/hidbus_base.h" | 7 | #include "hid_core/hidbus/hidbus_base.h" |
| 8 | 8 | ||
| 9 | namespace Core::HID { | 9 | namespace Core::HID { |
| 10 | class EmulatedController; | 10 | class EmulatedController; |
diff --git a/src/core/hle/service/hid/irsensor/clustering_processor.cpp b/src/hid_core/irsensor/clustering_processor.cpp index c559eb0d5..3abe19365 100644 --- a/src/core/hle/service/hid/irsensor/clustering_processor.cpp +++ b/src/hid_core/irsensor/clustering_processor.cpp | |||
| @@ -5,9 +5,9 @@ | |||
| 5 | 5 | ||
| 6 | #include "core/core.h" | 6 | #include "core/core.h" |
| 7 | #include "core/core_timing.h" | 7 | #include "core/core_timing.h" |
| 8 | #include "core/hid/emulated_controller.h" | 8 | #include "hid_core/frontend/emulated_controller.h" |
| 9 | #include "core/hid/hid_core.h" | 9 | #include "hid_core/hid_core.h" |
| 10 | #include "core/hle/service/hid/irsensor/clustering_processor.h" | 10 | #include "hid_core/irsensor/clustering_processor.h" |
| 11 | 11 | ||
| 12 | namespace Service::IRS { | 12 | namespace Service::IRS { |
| 13 | ClusteringProcessor::ClusteringProcessor(Core::System& system_, | 13 | ClusteringProcessor::ClusteringProcessor(Core::System& system_, |
diff --git a/src/core/hle/service/hid/irsensor/clustering_processor.h b/src/hid_core/irsensor/clustering_processor.h index 83f34734a..e3b60d9b0 100644 --- a/src/core/hle/service/hid/irsensor/clustering_processor.h +++ b/src/hid_core/irsensor/clustering_processor.h | |||
| @@ -4,9 +4,9 @@ | |||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 7 | #include "core/hid/irs_types.h" | 7 | #include "hid_core/irsensor/irs_types.h" |
| 8 | #include "core/hle/service/hid/irs_ring_lifo.h" | 8 | #include "hid_core/irsensor/processor_base.h" |
| 9 | #include "core/hle/service/hid/irsensor/processor_base.h" | 9 | #include "hid_core/resources/irs_ring_lifo.h" |
| 10 | 10 | ||
| 11 | namespace Core { | 11 | namespace Core { |
| 12 | class System; | 12 | class System; |
diff --git a/src/core/hle/service/hid/irsensor/image_transfer_processor.cpp b/src/hid_core/irsensor/image_transfer_processor.cpp index 22067a591..d6573f8dc 100644 --- a/src/core/hle/service/hid/irsensor/image_transfer_processor.cpp +++ b/src/hid_core/irsensor/image_transfer_processor.cpp | |||
| @@ -2,10 +2,10 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later | 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/core.h" | 4 | #include "core/core.h" |
| 5 | #include "core/hid/emulated_controller.h" | ||
| 6 | #include "core/hid/hid_core.h" | ||
| 7 | #include "core/hle/service/hid/irsensor/image_transfer_processor.h" | ||
| 8 | #include "core/memory.h" | 5 | #include "core/memory.h" |
| 6 | #include "hid_core/frontend/emulated_controller.h" | ||
| 7 | #include "hid_core/hid_core.h" | ||
| 8 | #include "hid_core/irsensor/image_transfer_processor.h" | ||
| 9 | 9 | ||
| 10 | namespace Service::IRS { | 10 | namespace Service::IRS { |
| 11 | ImageTransferProcessor::ImageTransferProcessor(Core::System& system_, | 11 | ImageTransferProcessor::ImageTransferProcessor(Core::System& system_, |
diff --git a/src/core/hle/service/hid/irsensor/image_transfer_processor.h b/src/hid_core/irsensor/image_transfer_processor.h index 7f42d8453..4e0117084 100644 --- a/src/core/hle/service/hid/irsensor/image_transfer_processor.h +++ b/src/hid_core/irsensor/image_transfer_processor.h | |||
| @@ -4,8 +4,8 @@ | |||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "common/typed_address.h" | 6 | #include "common/typed_address.h" |
| 7 | #include "core/hid/irs_types.h" | 7 | #include "hid_core/irsensor/irs_types.h" |
| 8 | #include "core/hle/service/hid/irsensor/processor_base.h" | 8 | #include "hid_core/irsensor/processor_base.h" |
| 9 | 9 | ||
| 10 | namespace Core { | 10 | namespace Core { |
| 11 | class System; | 11 | class System; |
diff --git a/src/core/hle/service/hid/irsensor/ir_led_processor.cpp b/src/hid_core/irsensor/ir_led_processor.cpp index 8e6dd99e4..4b04e05b5 100644 --- a/src/core/hle/service/hid/irsensor/ir_led_processor.cpp +++ b/src/hid_core/irsensor/ir_led_processor.cpp | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later | 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/hid/irsensor/ir_led_processor.h" | 4 | #include "hid_core/irsensor/ir_led_processor.h" |
| 5 | 5 | ||
| 6 | namespace Service::IRS { | 6 | namespace Service::IRS { |
| 7 | IrLedProcessor::IrLedProcessor(Core::IrSensor::DeviceFormat& device_format) | 7 | IrLedProcessor::IrLedProcessor(Core::IrSensor::DeviceFormat& device_format) |
diff --git a/src/core/hle/service/hid/irsensor/ir_led_processor.h b/src/hid_core/irsensor/ir_led_processor.h index c3d8693c9..03d0c4245 100644 --- a/src/core/hle/service/hid/irsensor/ir_led_processor.h +++ b/src/hid_core/irsensor/ir_led_processor.h | |||
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | ||
| 6 | #include "common/bit_field.h" | 6 | #include "common/bit_field.h" |
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "core/hid/irs_types.h" | 8 | #include "hid_core/irsensor/irs_types.h" |
| 9 | #include "core/hle/service/hid/irsensor/processor_base.h" | 9 | #include "hid_core/irsensor/processor_base.h" |
| 10 | 10 | ||
| 11 | namespace Service::IRS { | 11 | namespace Service::IRS { |
| 12 | class IrLedProcessor final : public ProcessorBase { | 12 | class IrLedProcessor final : public ProcessorBase { |
diff --git a/src/core/hid/irs_types.h b/src/hid_core/irsensor/irs_types.h index 0d1bfe53f..017f38e6c 100644 --- a/src/core/hid/irs_types.h +++ b/src/hid_core/irsensor/irs_types.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | #include "common/common_funcs.h" | 6 | #include "common/common_funcs.h" |
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "core/hid/hid_types.h" | 8 | #include "hid_core/hid_types.h" |
| 9 | 9 | ||
| 10 | namespace Core::IrSensor { | 10 | namespace Core::IrSensor { |
| 11 | 11 | ||
diff --git a/src/core/hle/service/hid/irsensor/moment_processor.cpp b/src/hid_core/irsensor/moment_processor.cpp index cf045bda7..0284a58bd 100644 --- a/src/core/hle/service/hid/irsensor/moment_processor.cpp +++ b/src/hid_core/irsensor/moment_processor.cpp | |||
| @@ -3,9 +3,9 @@ | |||
| 3 | 3 | ||
| 4 | #include "core/core.h" | 4 | #include "core/core.h" |
| 5 | #include "core/core_timing.h" | 5 | #include "core/core_timing.h" |
| 6 | #include "core/hid/emulated_controller.h" | 6 | #include "hid_core/frontend/emulated_controller.h" |
| 7 | #include "core/hid/hid_core.h" | 7 | #include "hid_core/hid_core.h" |
| 8 | #include "core/hle/service/hid/irsensor/moment_processor.h" | 8 | #include "hid_core/irsensor/moment_processor.h" |
| 9 | 9 | ||
| 10 | namespace Service::IRS { | 10 | namespace Service::IRS { |
| 11 | static constexpr auto format = Core::IrSensor::ImageTransferProcessorFormat::Size40x30; | 11 | static constexpr auto format = Core::IrSensor::ImageTransferProcessorFormat::Size40x30; |
diff --git a/src/core/hle/service/hid/irsensor/moment_processor.h b/src/hid_core/irsensor/moment_processor.h index 398cfbdc1..78c9c035f 100644 --- a/src/core/hle/service/hid/irsensor/moment_processor.h +++ b/src/hid_core/irsensor/moment_processor.h | |||
| @@ -5,9 +5,9 @@ | |||
| 5 | 5 | ||
| 6 | #include "common/bit_field.h" | 6 | #include "common/bit_field.h" |
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "core/hid/irs_types.h" | 8 | #include "hid_core/irsensor/irs_types.h" |
| 9 | #include "core/hle/service/hid/irs_ring_lifo.h" | 9 | #include "hid_core/irsensor/processor_base.h" |
| 10 | #include "core/hle/service/hid/irsensor/processor_base.h" | 10 | #include "hid_core/resources/irs_ring_lifo.h" |
| 11 | 11 | ||
| 12 | namespace Core { | 12 | namespace Core { |
| 13 | class System; | 13 | class System; |
diff --git a/src/core/hle/service/hid/irsensor/pointing_processor.cpp b/src/hid_core/irsensor/pointing_processor.cpp index 929f177fc..c1d6c1bb6 100644 --- a/src/core/hle/service/hid/irsensor/pointing_processor.cpp +++ b/src/hid_core/irsensor/pointing_processor.cpp | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later | 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/hid/irsensor/pointing_processor.h" | 4 | #include "hid_core/irsensor/pointing_processor.h" |
| 5 | 5 | ||
| 6 | namespace Service::IRS { | 6 | namespace Service::IRS { |
| 7 | PointingProcessor::PointingProcessor(Core::IrSensor::DeviceFormat& device_format) | 7 | PointingProcessor::PointingProcessor(Core::IrSensor::DeviceFormat& device_format) |
diff --git a/src/core/hle/service/hid/irsensor/pointing_processor.h b/src/hid_core/irsensor/pointing_processor.h index d63423aff..968c2e5bd 100644 --- a/src/core/hle/service/hid/irsensor/pointing_processor.h +++ b/src/hid_core/irsensor/pointing_processor.h | |||
| @@ -4,8 +4,8 @@ | |||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 7 | #include "core/hid/irs_types.h" | 7 | #include "hid_core/irsensor/irs_types.h" |
| 8 | #include "core/hle/service/hid/irsensor/processor_base.h" | 8 | #include "hid_core/irsensor/processor_base.h" |
| 9 | 9 | ||
| 10 | namespace Service::IRS { | 10 | namespace Service::IRS { |
| 11 | class PointingProcessor final : public ProcessorBase { | 11 | class PointingProcessor final : public ProcessorBase { |
diff --git a/src/core/hle/service/hid/irsensor/processor_base.cpp b/src/hid_core/irsensor/processor_base.cpp index 4d43ca17a..91a513a70 100644 --- a/src/core/hle/service/hid/irsensor/processor_base.cpp +++ b/src/hid_core/irsensor/processor_base.cpp | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later | 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/hid/irsensor/processor_base.h" | 4 | #include "hid_core/irsensor/processor_base.h" |
| 5 | 5 | ||
| 6 | namespace Service::IRS { | 6 | namespace Service::IRS { |
| 7 | 7 | ||
diff --git a/src/core/hle/service/hid/irsensor/processor_base.h b/src/hid_core/irsensor/processor_base.h index bc0d2977b..48beeafba 100644 --- a/src/core/hle/service/hid/irsensor/processor_base.h +++ b/src/hid_core/irsensor/processor_base.h | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 7 | #include "core/hid/irs_types.h" | 7 | #include "hid_core/irsensor/irs_types.h" |
| 8 | 8 | ||
| 9 | namespace Service::IRS { | 9 | namespace Service::IRS { |
| 10 | class ProcessorBase { | 10 | class ProcessorBase { |
diff --git a/src/core/hle/service/hid/irsensor/tera_plugin_processor.cpp b/src/hid_core/irsensor/tera_plugin_processor.cpp index e691c840a..2382e208a 100644 --- a/src/core/hle/service/hid/irsensor/tera_plugin_processor.cpp +++ b/src/hid_core/irsensor/tera_plugin_processor.cpp | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2022 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later | 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/hid/irsensor/tera_plugin_processor.h" | 4 | #include "hid_core/irsensor/tera_plugin_processor.h" |
| 5 | 5 | ||
| 6 | namespace Service::IRS { | 6 | namespace Service::IRS { |
| 7 | TeraPluginProcessor::TeraPluginProcessor(Core::IrSensor::DeviceFormat& device_format) | 7 | TeraPluginProcessor::TeraPluginProcessor(Core::IrSensor::DeviceFormat& device_format) |
diff --git a/src/core/hle/service/hid/irsensor/tera_plugin_processor.h b/src/hid_core/irsensor/tera_plugin_processor.h index bbea7ed0b..dc8fe7d07 100644 --- a/src/core/hle/service/hid/irsensor/tera_plugin_processor.h +++ b/src/hid_core/irsensor/tera_plugin_processor.h | |||
| @@ -5,8 +5,8 @@ | |||
| 5 | 5 | ||
| 6 | #include "common/bit_field.h" | 6 | #include "common/bit_field.h" |
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "core/hid/irs_types.h" | 8 | #include "hid_core/irsensor/irs_types.h" |
| 9 | #include "core/hle/service/hid/irsensor/processor_base.h" | 9 | #include "hid_core/irsensor/processor_base.h" |
| 10 | 10 | ||
| 11 | namespace Service::IRS { | 11 | namespace Service::IRS { |
| 12 | class TeraPluginProcessor final : public ProcessorBase { | 12 | class TeraPluginProcessor final : public ProcessorBase { |
diff --git a/src/hid_core/precompiled_headers.h b/src/hid_core/precompiled_headers.h new file mode 100644 index 000000000..aabae730b --- /dev/null +++ b/src/hid_core/precompiled_headers.h | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | // SPDX-FileCopyrightText: 2022 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "common/common_precompiled_headers.h" | ||
diff --git a/src/core/hle/service/hid/resource_manager.cpp b/src/hid_core/resource_manager.cpp index 1f41e645d..17dacef6e 100644 --- a/src/core/hle/service/hid/resource_manager.cpp +++ b/src/hid_core/resource_manager.cpp | |||
| @@ -4,29 +4,29 @@ | |||
| 4 | #include "common/logging/log.h" | 4 | #include "common/logging/log.h" |
| 5 | #include "core/core.h" | 5 | #include "core/core.h" |
| 6 | #include "core/core_timing.h" | 6 | #include "core/core_timing.h" |
| 7 | #include "core/hid/hid_core.h" | ||
| 8 | #include "core/hle/kernel/k_shared_memory.h" | 7 | #include "core/hle/kernel/k_shared_memory.h" |
| 9 | #include "core/hle/service/hid/resource_manager.h" | ||
| 10 | #include "core/hle/service/ipc_helpers.h" | 8 | #include "core/hle/service/ipc_helpers.h" |
| 11 | 9 | #include "hid_core/hid_core.h" | |
| 12 | #include "core/hle/service/hid/controllers/applet_resource.h" | 10 | #include "hid_core/resource_manager.h" |
| 13 | #include "core/hle/service/hid/controllers/capture_button.h" | 11 | |
| 14 | #include "core/hle/service/hid/controllers/console_six_axis.h" | 12 | #include "hid_core/resources/applet_resource.h" |
| 15 | #include "core/hle/service/hid/controllers/debug_mouse.h" | 13 | #include "hid_core/resources/debug_pad/debug_pad.h" |
| 16 | #include "core/hle/service/hid/controllers/debug_pad.h" | 14 | #include "hid_core/resources/digitizer/digitizer.h" |
| 17 | #include "core/hle/service/hid/controllers/digitizer.h" | 15 | #include "hid_core/resources/keyboard/keyboard.h" |
| 18 | #include "core/hle/service/hid/controllers/gesture.h" | 16 | #include "hid_core/resources/mouse/debug_mouse.h" |
| 19 | #include "core/hle/service/hid/controllers/home_button.h" | 17 | #include "hid_core/resources/mouse/mouse.h" |
| 20 | #include "core/hle/service/hid/controllers/keyboard.h" | 18 | #include "hid_core/resources/npad/npad.h" |
| 21 | #include "core/hle/service/hid/controllers/mouse.h" | 19 | #include "hid_core/resources/palma/palma.h" |
| 22 | #include "core/hle/service/hid/controllers/npad.h" | 20 | #include "hid_core/resources/shared_memory_format.h" |
| 23 | #include "core/hle/service/hid/controllers/palma.h" | 21 | #include "hid_core/resources/six_axis/console_six_axis.h" |
| 24 | #include "core/hle/service/hid/controllers/seven_six_axis.h" | 22 | #include "hid_core/resources/six_axis/seven_six_axis.h" |
| 25 | #include "core/hle/service/hid/controllers/six_axis.h" | 23 | #include "hid_core/resources/six_axis/six_axis.h" |
| 26 | #include "core/hle/service/hid/controllers/sleep_button.h" | 24 | #include "hid_core/resources/system_buttons/capture_button.h" |
| 27 | #include "core/hle/service/hid/controllers/touchscreen.h" | 25 | #include "hid_core/resources/system_buttons/home_button.h" |
| 28 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 26 | #include "hid_core/resources/system_buttons/sleep_button.h" |
| 29 | #include "core/hle/service/hid/controllers/unique_pad.h" | 27 | #include "hid_core/resources/touch_screen/gesture.h" |
| 28 | #include "hid_core/resources/touch_screen/touch_screen.h" | ||
| 29 | #include "hid_core/resources/unique_pad/unique_pad.h" | ||
| 30 | 30 | ||
| 31 | namespace Service::HID { | 31 | namespace Service::HID { |
| 32 | 32 | ||
diff --git a/src/core/hle/service/hid/resource_manager.h b/src/hid_core/resource_manager.h index 7a21d8eb8..7a21d8eb8 100644 --- a/src/core/hle/service/hid/resource_manager.h +++ b/src/hid_core/resource_manager.h | |||
diff --git a/src/core/hle/service/hid/controllers/applet_resource.cpp b/src/hid_core/resources/applet_resource.cpp index b4ff663c2..d16cff1a4 100644 --- a/src/core/hle/service/hid/controllers/applet_resource.cpp +++ b/src/hid_core/resources/applet_resource.cpp | |||
| @@ -3,9 +3,9 @@ | |||
| 3 | 3 | ||
| 4 | #include "core/core.h" | 4 | #include "core/core.h" |
| 5 | #include "core/hle/kernel/k_shared_memory.h" | 5 | #include "core/hle/kernel/k_shared_memory.h" |
| 6 | #include "core/hle/service/hid/controllers/applet_resource.h" | 6 | #include "hid_core/hid_result.h" |
| 7 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 7 | #include "hid_core/resources/applet_resource.h" |
| 8 | #include "core/hle/service/hid/errors.h" | 8 | #include "hid_core/resources/shared_memory_format.h" |
| 9 | 9 | ||
| 10 | namespace Service::HID { | 10 | namespace Service::HID { |
| 11 | 11 | ||
diff --git a/src/core/hle/service/hid/controllers/applet_resource.h b/src/hid_core/resources/applet_resource.h index 0862fdc2f..f3f32bac1 100644 --- a/src/core/hle/service/hid/controllers/applet_resource.h +++ b/src/hid_core/resources/applet_resource.h | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | #include "common/bit_field.h" | 9 | #include "common/bit_field.h" |
| 10 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 11 | #include "core/hle/result.h" | 11 | #include "core/hle/result.h" |
| 12 | #include "core/hle/service/hid/controllers/shared_memory_holder.h" | 12 | #include "hid_core/resources/shared_memory_holder.h" |
| 13 | 13 | ||
| 14 | namespace Core { | 14 | namespace Core { |
| 15 | class System; | 15 | class System; |
diff --git a/src/core/hle/service/hid/controllers/controller_base.cpp b/src/hid_core/resources/controller_base.cpp index afca7154c..df5f5c884 100644 --- a/src/core/hle/service/hid/controllers/controller_base.cpp +++ b/src/hid_core/resources/controller_base.cpp | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/hid/controllers/controller_base.h" | 4 | #include "hid_core/resources/controller_base.h" |
| 5 | 5 | ||
| 6 | namespace Service::HID { | 6 | namespace Service::HID { |
| 7 | 7 | ||
diff --git a/src/core/hle/service/hid/controllers/controller_base.h b/src/hid_core/resources/controller_base.h index b34b85ece..e61bc6376 100644 --- a/src/core/hle/service/hid/controllers/controller_base.h +++ b/src/hid_core/resources/controller_base.h | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 9 | #include "core/hle/result.h" | 9 | #include "core/hle/result.h" |
| 10 | #include "core/hle/service/hid/controllers/applet_resource.h" | 10 | #include "hid_core/resources/applet_resource.h" |
| 11 | 11 | ||
| 12 | namespace Core::Timing { | 12 | namespace Core::Timing { |
| 13 | class CoreTiming; | 13 | class CoreTiming; |
diff --git a/src/core/hle/service/hid/controllers/debug_pad.cpp b/src/hid_core/resources/debug_pad/debug_pad.cpp index dc83f90f3..1102dad6c 100644 --- a/src/core/hle/service/hid/controllers/debug_pad.cpp +++ b/src/hid_core/resources/debug_pad/debug_pad.cpp | |||
| @@ -3,12 +3,12 @@ | |||
| 3 | 3 | ||
| 4 | #include "common/settings.h" | 4 | #include "common/settings.h" |
| 5 | #include "core/core_timing.h" | 5 | #include "core/core_timing.h" |
| 6 | #include "core/hid/emulated_controller.h" | 6 | #include "hid_core/frontend/emulated_controller.h" |
| 7 | #include "core/hid/hid_core.h" | 7 | #include "hid_core/hid_core.h" |
| 8 | #include "core/hid/hid_types.h" | 8 | #include "hid_core/hid_types.h" |
| 9 | #include "core/hle/service/hid/controllers/applet_resource.h" | 9 | #include "hid_core/resources/applet_resource.h" |
| 10 | #include "core/hle/service/hid/controllers/debug_pad.h" | 10 | #include "hid_core/resources/debug_pad/debug_pad.h" |
| 11 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 11 | #include "hid_core/resources/shared_memory_format.h" |
| 12 | 12 | ||
| 13 | namespace Service::HID { | 13 | namespace Service::HID { |
| 14 | 14 | ||
diff --git a/src/core/hle/service/hid/controllers/debug_pad.h b/src/hid_core/resources/debug_pad/debug_pad.h index dd00b2402..73c3d4421 100644 --- a/src/core/hle/service/hid/controllers/debug_pad.h +++ b/src/hid_core/resources/debug_pad/debug_pad.h | |||
| @@ -3,12 +3,13 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "core/hle/service/hid/controllers/controller_base.h" | 6 | #include "hid_core/resources/controller_base.h" |
| 7 | #include "core/hle/service/hid/controllers/types/debug_pad_types.h" | 7 | #include "hid_core/resources/debug_pad/debug_pad_types.h" |
| 8 | 8 | ||
| 9 | namespace Core::HID { | 9 | namespace Core::HID { |
| 10 | class HIDCore; | 10 | class HIDCore; |
| 11 | } | 11 | class EmulatedController; |
| 12 | } // namespace Core::HID | ||
| 12 | 13 | ||
| 13 | namespace Core::Timing { | 14 | namespace Core::Timing { |
| 14 | class CoreTiming; | 15 | class CoreTiming; |
diff --git a/src/core/hle/service/hid/controllers/types/debug_pad_types.h b/src/hid_core/resources/debug_pad/debug_pad_types.h index a96171b62..8b5eb108e 100644 --- a/src/core/hle/service/hid/controllers/types/debug_pad_types.h +++ b/src/hid_core/resources/debug_pad/debug_pad_types.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | #include "common/bit_field.h" | 6 | #include "common/bit_field.h" |
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "core/hid/hid_types.h" | 8 | #include "hid_core/hid_types.h" |
| 9 | 9 | ||
| 10 | namespace Service::HID { | 10 | namespace Service::HID { |
| 11 | 11 | ||
diff --git a/src/core/hle/service/hid/controllers/digitizer.cpp b/src/hid_core/resources/digitizer/digitizer.cpp index d5514c965..cd72fd6e5 100644 --- a/src/core/hle/service/hid/controllers/digitizer.cpp +++ b/src/hid_core/resources/digitizer/digitizer.cpp | |||
| @@ -2,9 +2,9 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/core_timing.h" | 4 | #include "core/core_timing.h" |
| 5 | #include "core/hle/service/hid/controllers/applet_resource.h" | 5 | #include "hid_core/resources/applet_resource.h" |
| 6 | #include "core/hle/service/hid/controllers/digitizer.h" | 6 | #include "hid_core/resources/digitizer/digitizer.h" |
| 7 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 7 | #include "hid_core/resources/shared_memory_format.h" |
| 8 | 8 | ||
| 9 | namespace Service::HID { | 9 | namespace Service::HID { |
| 10 | 10 | ||
diff --git a/src/core/hle/service/hid/controllers/digitizer.h b/src/hid_core/resources/digitizer/digitizer.h index d81f814c3..e031a16b0 100644 --- a/src/core/hle/service/hid/controllers/digitizer.h +++ b/src/hid_core/resources/digitizer/digitizer.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "core/hle/service/hid/controllers/controller_base.h" | 6 | #include "hid_core/resources/controller_base.h" |
| 7 | 7 | ||
| 8 | namespace Service::HID { | 8 | namespace Service::HID { |
| 9 | 9 | ||
diff --git a/src/core/hle/service/hid/hid_firmware_settings.cpp b/src/hid_core/resources/hid_firmware_settings.cpp index 59bd6825c..e76b3a016 100644 --- a/src/core/hle/service/hid/hid_firmware_settings.cpp +++ b/src/hid_core/resources/hid_firmware_settings.cpp | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later | 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/hid/hid_firmware_settings.h" | 4 | #include "hid_core/resources/hid_firmware_settings.h" |
| 5 | 5 | ||
| 6 | namespace Service::HID { | 6 | namespace Service::HID { |
| 7 | 7 | ||
diff --git a/src/core/hle/service/hid/hid_firmware_settings.h b/src/hid_core/resources/hid_firmware_settings.h index 6c10c440b..6c10c440b 100644 --- a/src/core/hle/service/hid/hid_firmware_settings.h +++ b/src/hid_core/resources/hid_firmware_settings.h | |||
diff --git a/src/core/hle/service/hid/irs_ring_lifo.h b/src/hid_core/resources/irs_ring_lifo.h index 255d1d296..255d1d296 100644 --- a/src/core/hle/service/hid/irs_ring_lifo.h +++ b/src/hid_core/resources/irs_ring_lifo.h | |||
diff --git a/src/core/hle/service/hid/controllers/keyboard.cpp b/src/hid_core/resources/keyboard/keyboard.cpp index c069bcbb2..340e8a65c 100644 --- a/src/core/hle/service/hid/controllers/keyboard.cpp +++ b/src/hid_core/resources/keyboard/keyboard.cpp | |||
| @@ -3,11 +3,11 @@ | |||
| 3 | 3 | ||
| 4 | #include "common/settings.h" | 4 | #include "common/settings.h" |
| 5 | #include "core/core_timing.h" | 5 | #include "core/core_timing.h" |
| 6 | #include "core/hid/emulated_devices.h" | 6 | #include "hid_core/frontend/emulated_devices.h" |
| 7 | #include "core/hid/hid_core.h" | 7 | #include "hid_core/hid_core.h" |
| 8 | #include "core/hle/service/hid/controllers/applet_resource.h" | 8 | #include "hid_core/resources/applet_resource.h" |
| 9 | #include "core/hle/service/hid/controllers/keyboard.h" | 9 | #include "hid_core/resources/keyboard/keyboard.h" |
| 10 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 10 | #include "hid_core/resources/shared_memory_format.h" |
| 11 | 11 | ||
| 12 | namespace Service::HID { | 12 | namespace Service::HID { |
| 13 | 13 | ||
diff --git a/src/core/hle/service/hid/controllers/keyboard.h b/src/hid_core/resources/keyboard/keyboard.h index e8ca326c6..4bcc1c1b2 100644 --- a/src/core/hle/service/hid/controllers/keyboard.h +++ b/src/hid_core/resources/keyboard/keyboard.h | |||
| @@ -3,8 +3,13 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "core/hle/service/hid/controllers/controller_base.h" | 6 | #include "hid_core/resources/controller_base.h" |
| 7 | #include "core/hle/service/hid/controllers/types/keyboard_types.h" | 7 | #include "hid_core/resources/keyboard/keyboard_types.h" |
| 8 | |||
| 9 | namespace Core::HID { | ||
| 10 | class HIDCore; | ||
| 11 | class EmulatedDevices; | ||
| 12 | } // namespace Core::HID | ||
| 8 | 13 | ||
| 9 | namespace Service::HID { | 14 | namespace Service::HID { |
| 10 | class Keyboard final : public ControllerBase { | 15 | class Keyboard final : public ControllerBase { |
diff --git a/src/core/hle/service/hid/controllers/types/keyboard_types.h b/src/hid_core/resources/keyboard/keyboard_types.h index f44a536b9..4d7ff2f0a 100644 --- a/src/core/hle/service/hid/controllers/types/keyboard_types.h +++ b/src/hid_core/resources/keyboard/keyboard_types.h | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 7 | #include "core/hid/hid_types.h" | 7 | #include "hid_core/hid_types.h" |
| 8 | 8 | ||
| 9 | namespace Service::HID { | 9 | namespace Service::HID { |
| 10 | 10 | ||
diff --git a/src/core/hle/service/hid/controllers/debug_mouse.cpp b/src/hid_core/resources/mouse/debug_mouse.cpp index ceeb78d36..5f6f6e8e1 100644 --- a/src/core/hle/service/hid/controllers/debug_mouse.cpp +++ b/src/hid_core/resources/mouse/debug_mouse.cpp | |||
| @@ -3,11 +3,11 @@ | |||
| 3 | 3 | ||
| 4 | #include "core/core_timing.h" | 4 | #include "core/core_timing.h" |
| 5 | #include "core/frontend/emu_window.h" | 5 | #include "core/frontend/emu_window.h" |
| 6 | #include "core/hid/emulated_devices.h" | 6 | #include "hid_core/frontend/emulated_devices.h" |
| 7 | #include "core/hid/hid_core.h" | 7 | #include "hid_core/hid_core.h" |
| 8 | #include "core/hle/service/hid/controllers/applet_resource.h" | 8 | #include "hid_core/resources/applet_resource.h" |
| 9 | #include "core/hle/service/hid/controllers/debug_mouse.h" | 9 | #include "hid_core/resources/mouse/debug_mouse.h" |
| 10 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 10 | #include "hid_core/resources/shared_memory_format.h" |
| 11 | 11 | ||
| 12 | namespace Service::HID { | 12 | namespace Service::HID { |
| 13 | 13 | ||
diff --git a/src/core/hle/service/hid/controllers/debug_mouse.h b/src/hid_core/resources/mouse/debug_mouse.h index ec939fa9f..006b53da6 100644 --- a/src/core/hle/service/hid/controllers/debug_mouse.h +++ b/src/hid_core/resources/mouse/debug_mouse.h | |||
| @@ -3,12 +3,12 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "core/hle/service/hid/controllers/controller_base.h" | 6 | #include "hid_core/hid_types.h" |
| 7 | #include "hid_core/resources/controller_base.h" | ||
| 7 | 8 | ||
| 8 | namespace Core::HID { | 9 | namespace Core::HID { |
| 10 | class HIDCore; | ||
| 9 | class EmulatedDevices; | 11 | class EmulatedDevices; |
| 10 | struct MouseState; | ||
| 11 | struct AnalogStickState; | ||
| 12 | } // namespace Core::HID | 12 | } // namespace Core::HID |
| 13 | 13 | ||
| 14 | namespace Service::HID { | 14 | namespace Service::HID { |
diff --git a/src/core/hle/service/hid/controllers/mouse.cpp b/src/hid_core/resources/mouse/mouse.cpp index 3a8d1751b..53a8938a1 100644 --- a/src/core/hle/service/hid/controllers/mouse.cpp +++ b/src/hid_core/resources/mouse/mouse.cpp | |||
| @@ -3,11 +3,11 @@ | |||
| 3 | 3 | ||
| 4 | #include "core/core_timing.h" | 4 | #include "core/core_timing.h" |
| 5 | #include "core/frontend/emu_window.h" | 5 | #include "core/frontend/emu_window.h" |
| 6 | #include "core/hid/emulated_devices.h" | 6 | #include "hid_core/frontend/emulated_devices.h" |
| 7 | #include "core/hid/hid_core.h" | 7 | #include "hid_core/hid_core.h" |
| 8 | #include "core/hle/service/hid/controllers/applet_resource.h" | 8 | #include "hid_core/resources/applet_resource.h" |
| 9 | #include "core/hle/service/hid/controllers/mouse.h" | 9 | #include "hid_core/resources/mouse/mouse.h" |
| 10 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 10 | #include "hid_core/resources/shared_memory_format.h" |
| 11 | 11 | ||
| 12 | namespace Service::HID { | 12 | namespace Service::HID { |
| 13 | 13 | ||
diff --git a/src/core/hle/service/hid/controllers/mouse.h b/src/hid_core/resources/mouse/mouse.h index cefad956c..e9ac6ad36 100644 --- a/src/core/hle/service/hid/controllers/mouse.h +++ b/src/hid_core/resources/mouse/mouse.h | |||
| @@ -3,12 +3,12 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "core/hle/service/hid/controllers/controller_base.h" | 6 | #include "hid_core/hid_types.h" |
| 7 | #include "hid_core/resources/controller_base.h" | ||
| 7 | 8 | ||
| 8 | namespace Core::HID { | 9 | namespace Core::HID { |
| 10 | class HIDCore; | ||
| 9 | class EmulatedDevices; | 11 | class EmulatedDevices; |
| 10 | struct MouseState; | ||
| 11 | struct AnalogStickState; | ||
| 12 | } // namespace Core::HID | 12 | } // namespace Core::HID |
| 13 | 13 | ||
| 14 | namespace Service::HID { | 14 | namespace Service::HID { |
diff --git a/src/core/hle/service/hid/controllers/types/mouse_types.h b/src/hid_core/resources/mouse/mouse_types.h index 8bd6e167c..8bd6e167c 100644 --- a/src/core/hle/service/hid/controllers/types/mouse_types.h +++ b/src/hid_core/resources/mouse/mouse_types.h | |||
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/hid_core/resources/npad/npad.cpp index 17cd0d7a0..e6c035628 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/hid_core/resources/npad/npad.cpp | |||
| @@ -12,16 +12,16 @@ | |||
| 12 | #include "common/logging/log.h" | 12 | #include "common/logging/log.h" |
| 13 | #include "common/settings.h" | 13 | #include "common/settings.h" |
| 14 | #include "core/core_timing.h" | 14 | #include "core/core_timing.h" |
| 15 | #include "core/hid/emulated_controller.h" | ||
| 16 | #include "core/hid/hid_core.h" | ||
| 17 | #include "core/hle/kernel/k_event.h" | 15 | #include "core/hle/kernel/k_event.h" |
| 18 | #include "core/hle/kernel/k_readable_event.h" | 16 | #include "core/hle/kernel/k_readable_event.h" |
| 19 | #include "core/hle/service/hid/controllers/applet_resource.h" | ||
| 20 | #include "core/hle/service/hid/controllers/npad.h" | ||
| 21 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | ||
| 22 | #include "core/hle/service/hid/errors.h" | ||
| 23 | #include "core/hle/service/hid/hid_util.h" | ||
| 24 | #include "core/hle/service/kernel_helpers.h" | 17 | #include "core/hle/service/kernel_helpers.h" |
| 18 | #include "hid_core/frontend/emulated_controller.h" | ||
| 19 | #include "hid_core/hid_core.h" | ||
| 20 | #include "hid_core/hid_result.h" | ||
| 21 | #include "hid_core/hid_util.h" | ||
| 22 | #include "hid_core/resources/applet_resource.h" | ||
| 23 | #include "hid_core/resources/npad/npad.h" | ||
| 24 | #include "hid_core/resources/shared_memory_format.h" | ||
| 25 | 25 | ||
| 26 | namespace Service::HID { | 26 | namespace Service::HID { |
| 27 | 27 | ||
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/hid_core/resources/npad/npad.h index 8ab333064..58f8c7acf 100644 --- a/src/core/hle/service/hid/controllers/npad.h +++ b/src/hid_core/resources/npad/npad.h | |||
| @@ -9,10 +9,10 @@ | |||
| 9 | #include <span> | 9 | #include <span> |
| 10 | 10 | ||
| 11 | #include "common/common_types.h" | 11 | #include "common/common_types.h" |
| 12 | #include "core/hid/hid_types.h" | 12 | #include "hid_core/hid_types.h" |
| 13 | #include "core/hle/service/hid/controllers/controller_base.h" | 13 | #include "hid_core/resources/controller_base.h" |
| 14 | #include "core/hle/service/hid/controllers/npad/npad_resource.h" | 14 | #include "hid_core/resources/npad/npad_resource.h" |
| 15 | #include "core/hle/service/hid/controllers/types/npad_types.h" | 15 | #include "hid_core/resources/npad/npad_types.h" |
| 16 | 16 | ||
| 17 | namespace Core::HID { | 17 | namespace Core::HID { |
| 18 | class EmulatedController; | 18 | class EmulatedController; |
diff --git a/src/core/hle/service/hid/controllers/npad/npad_data.cpp b/src/hid_core/resources/npad/npad_data.cpp index d2423b6d3..c7e9760cb 100644 --- a/src/core/hle/service/hid/controllers/npad/npad_data.cpp +++ b/src/hid_core/resources/npad/npad_data.cpp | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later | 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hle/service/hid/controllers/npad/npad_data.h" | 4 | #include "hid_core/hid_util.h" |
| 5 | #include "core/hle/service/hid/hid_util.h" | 5 | #include "hid_core/resources/npad/npad_data.h" |
| 6 | 6 | ||
| 7 | namespace Service::HID { | 7 | namespace Service::HID { |
| 8 | 8 | ||
diff --git a/src/core/hle/service/hid/controllers/npad/npad_data.h b/src/hid_core/resources/npad/npad_data.h index f799a9f9c..86bd3b81c 100644 --- a/src/core/hle/service/hid/controllers/npad/npad_data.h +++ b/src/hid_core/resources/npad/npad_data.h | |||
| @@ -7,9 +7,9 @@ | |||
| 7 | #include <span> | 7 | #include <span> |
| 8 | 8 | ||
| 9 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 10 | #include "core/hid/hid_types.h" | ||
| 11 | #include "core/hle/result.h" | 10 | #include "core/hle/result.h" |
| 12 | #include "core/hle/service/hid/controllers/types/npad_types.h" | 11 | #include "hid_core/hid_types.h" |
| 12 | #include "hid_core/resources/npad/npad_types.h" | ||
| 13 | 13 | ||
| 14 | namespace Service::HID { | 14 | namespace Service::HID { |
| 15 | 15 | ||
diff --git a/src/core/hle/service/hid/controllers/npad/npad_resource.cpp b/src/hid_core/resources/npad/npad_resource.cpp index 0a9341a39..b0255a05c 100644 --- a/src/core/hle/service/hid/controllers/npad/npad_resource.cpp +++ b/src/hid_core/resources/npad/npad_resource.cpp | |||
| @@ -3,10 +3,10 @@ | |||
| 3 | 3 | ||
| 4 | #include "core/hle/kernel/k_event.h" | 4 | #include "core/hle/kernel/k_event.h" |
| 5 | #include "core/hle/kernel/k_readable_event.h" | 5 | #include "core/hle/kernel/k_readable_event.h" |
| 6 | #include "core/hle/service/hid/controllers/npad/npad_resource.h" | 6 | #include "hid_core/hid_result.h" |
| 7 | #include "core/hle/service/hid/controllers/types/npad_types.h" | 7 | #include "hid_core/hid_util.h" |
| 8 | #include "core/hle/service/hid/errors.h" | 8 | #include "hid_core/resources/npad/npad_resource.h" |
| 9 | #include "core/hle/service/hid/hid_util.h" | 9 | #include "hid_core/resources/npad/npad_types.h" |
| 10 | 10 | ||
| 11 | namespace Service::HID { | 11 | namespace Service::HID { |
| 12 | 12 | ||
diff --git a/src/core/hle/service/hid/controllers/npad/npad_resource.h b/src/hid_core/resources/npad/npad_resource.h index 4c7e6ab0e..aed89eec6 100644 --- a/src/core/hle/service/hid/controllers/npad/npad_resource.h +++ b/src/hid_core/resources/npad/npad_resource.h | |||
| @@ -8,12 +8,12 @@ | |||
| 8 | #include <span> | 8 | #include <span> |
| 9 | 9 | ||
| 10 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 11 | #include "core/hid/hid_types.h" | ||
| 12 | #include "core/hle/result.h" | 11 | #include "core/hle/result.h" |
| 13 | #include "core/hle/service/hid/controllers/applet_resource.h" | ||
| 14 | #include "core/hle/service/hid/controllers/npad/npad_data.h" | ||
| 15 | #include "core/hle/service/hid/controllers/types/npad_types.h" | ||
| 16 | #include "core/hle/service/kernel_helpers.h" | 12 | #include "core/hle/service/kernel_helpers.h" |
| 13 | #include "hid_core/hid_types.h" | ||
| 14 | #include "hid_core/resources/applet_resource.h" | ||
| 15 | #include "hid_core/resources/npad/npad_data.h" | ||
| 16 | #include "hid_core/resources/npad/npad_types.h" | ||
| 17 | 17 | ||
| 18 | namespace Core { | 18 | namespace Core { |
| 19 | class System; | 19 | class System; |
diff --git a/src/core/hle/service/hid/controllers/types/npad_types.h b/src/hid_core/resources/npad/npad_types.h index 419c33a8c..a02f9cf16 100644 --- a/src/core/hle/service/hid/controllers/types/npad_types.h +++ b/src/hid_core/resources/npad/npad_types.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | #include "common/bit_field.h" | 6 | #include "common/bit_field.h" |
| 7 | #include "common/common_funcs.h" | 7 | #include "common/common_funcs.h" |
| 8 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 9 | #include "core/hid/hid_types.h" | 9 | #include "hid_core/hid_types.h" |
| 10 | 10 | ||
| 11 | namespace Service::HID { | 11 | namespace Service::HID { |
| 12 | static constexpr std::size_t MaxSupportedNpadIdTypes = 10; | 12 | static constexpr std::size_t MaxSupportedNpadIdTypes = 10; |
diff --git a/src/core/hle/service/hid/controllers/palma.cpp b/src/hid_core/resources/palma/palma.cpp index aa0454b5e..ea4a291fd 100644 --- a/src/core/hle/service/hid/controllers/palma.cpp +++ b/src/hid_core/resources/palma/palma.cpp | |||
| @@ -2,13 +2,12 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/core_timing.h" | 4 | #include "core/core_timing.h" |
| 5 | #include "core/hid/emulated_controller.h" | ||
| 6 | #include "core/hid/hid_core.h" | ||
| 7 | #include "core/hid/hid_types.h" | ||
| 8 | #include "core/hle/kernel/k_event.h" | 5 | #include "core/hle/kernel/k_event.h" |
| 9 | #include "core/hle/kernel/k_readable_event.h" | 6 | #include "core/hle/kernel/k_readable_event.h" |
| 10 | #include "core/hle/service/hid/controllers/palma.h" | ||
| 11 | #include "core/hle/service/kernel_helpers.h" | 7 | #include "core/hle/service/kernel_helpers.h" |
| 8 | #include "hid_core/frontend/emulated_controller.h" | ||
| 9 | #include "hid_core/hid_core.h" | ||
| 10 | #include "hid_core/resources/palma/palma.h" | ||
| 12 | 11 | ||
| 13 | namespace Service::HID { | 12 | namespace Service::HID { |
| 14 | 13 | ||
diff --git a/src/core/hle/service/hid/controllers/palma.h b/src/hid_core/resources/palma/palma.h index 73884230d..60259c3d8 100644 --- a/src/core/hle/service/hid/controllers/palma.h +++ b/src/hid_core/resources/palma/palma.h | |||
| @@ -6,8 +6,9 @@ | |||
| 6 | #include <array> | 6 | #include <array> |
| 7 | #include "common/common_funcs.h" | 7 | #include "common/common_funcs.h" |
| 8 | #include "common/typed_address.h" | 8 | #include "common/typed_address.h" |
| 9 | #include "core/hle/service/hid/controllers/controller_base.h" | 9 | #include "hid_core/hid_result.h" |
| 10 | #include "core/hle/service/hid/errors.h" | 10 | #include "hid_core/hid_types.h" |
| 11 | #include "hid_core/resources/controller_base.h" | ||
| 11 | 12 | ||
| 12 | namespace Kernel { | 13 | namespace Kernel { |
| 13 | class KEvent; | 14 | class KEvent; |
diff --git a/src/core/hle/service/hid/ring_lifo.h b/src/hid_core/resources/ring_lifo.h index 0816784e0..0816784e0 100644 --- a/src/core/hle/service/hid/ring_lifo.h +++ b/src/hid_core/resources/ring_lifo.h | |||
diff --git a/src/core/hle/service/hid/controllers/types/shared_memory_format.h b/src/hid_core/resources/shared_memory_format.h index 976043b9c..2ae0004ba 100644 --- a/src/core/hle/service/hid/controllers/types/shared_memory_format.h +++ b/src/hid_core/resources/shared_memory_format.h | |||
| @@ -6,13 +6,13 @@ | |||
| 6 | #include "common/common_funcs.h" | 6 | #include "common/common_funcs.h" |
| 7 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 8 | #include "common/vector_math.h" | 8 | #include "common/vector_math.h" |
| 9 | #include "core/hid/hid_types.h" | 9 | #include "hid_core/hid_types.h" |
| 10 | #include "core/hle/service/hid//controllers/types/debug_pad_types.h" | 10 | #include "hid_core/resources/debug_pad/debug_pad_types.h" |
| 11 | #include "core/hle/service/hid//controllers/types/keyboard_types.h" | 11 | #include "hid_core/resources/keyboard/keyboard_types.h" |
| 12 | #include "core/hle/service/hid//controllers/types/mouse_types.h" | 12 | #include "hid_core/resources/mouse/mouse_types.h" |
| 13 | #include "core/hle/service/hid//controllers/types/npad_types.h" | 13 | #include "hid_core/resources/npad/npad_types.h" |
| 14 | #include "core/hle/service/hid//controllers/types/touch_types.h" | 14 | #include "hid_core/resources/ring_lifo.h" |
| 15 | #include "core/hle/service/hid/ring_lifo.h" | 15 | #include "hid_core/resources/touch_screen/touch_types.h" |
| 16 | 16 | ||
| 17 | namespace Service::HID { | 17 | namespace Service::HID { |
| 18 | static const std::size_t HidEntryCount = 17; | 18 | static const std::size_t HidEntryCount = 17; |
diff --git a/src/core/hle/service/hid/controllers/shared_memory_holder.cpp b/src/hid_core/resources/shared_memory_holder.cpp index 0bc5169c6..ada593d8b 100644 --- a/src/core/hle/service/hid/controllers/shared_memory_holder.cpp +++ b/src/hid_core/resources/shared_memory_holder.cpp | |||
| @@ -3,10 +3,10 @@ | |||
| 3 | 3 | ||
| 4 | #include "core/core.h" | 4 | #include "core/core.h" |
| 5 | #include "core/hle/kernel/k_shared_memory.h" | 5 | #include "core/hle/kernel/k_shared_memory.h" |
| 6 | #include "core/hle/service/hid/controllers/applet_resource.h" | 6 | #include "hid_core/hid_result.h" |
| 7 | #include "core/hle/service/hid/controllers/shared_memory_holder.h" | 7 | #include "hid_core/resources/applet_resource.h" |
| 8 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 8 | #include "hid_core/resources/shared_memory_format.h" |
| 9 | #include "core/hle/service/hid/errors.h" | 9 | #include "hid_core/resources/shared_memory_holder.h" |
| 10 | 10 | ||
| 11 | namespace Service::HID { | 11 | namespace Service::HID { |
| 12 | SharedMemoryHolder::SharedMemoryHolder() {} | 12 | SharedMemoryHolder::SharedMemoryHolder() {} |
diff --git a/src/core/hle/service/hid/controllers/shared_memory_holder.h b/src/hid_core/resources/shared_memory_holder.h index 943407c00..943407c00 100644 --- a/src/core/hle/service/hid/controllers/shared_memory_holder.h +++ b/src/hid_core/resources/shared_memory_holder.h | |||
diff --git a/src/core/hle/service/hid/controllers/console_six_axis.cpp b/src/hid_core/resources/six_axis/console_six_axis.cpp index 4b574c2e5..4f733cc76 100644 --- a/src/core/hle/service/hid/controllers/console_six_axis.cpp +++ b/src/hid_core/resources/six_axis/console_six_axis.cpp | |||
| @@ -2,10 +2,10 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/core_timing.h" | 4 | #include "core/core_timing.h" |
| 5 | #include "core/hid/emulated_console.h" | 5 | #include "hid_core/frontend/emulated_console.h" |
| 6 | #include "core/hid/hid_core.h" | 6 | #include "hid_core/hid_core.h" |
| 7 | #include "core/hle/service/hid/controllers/console_six_axis.h" | 7 | #include "hid_core/resources/shared_memory_format.h" |
| 8 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 8 | #include "hid_core/resources/six_axis/console_six_axis.h" |
| 9 | 9 | ||
| 10 | namespace Service::HID { | 10 | namespace Service::HID { |
| 11 | 11 | ||
diff --git a/src/core/hle/service/hid/controllers/console_six_axis.h b/src/hid_core/resources/six_axis/console_six_axis.h index e3351f83c..013b2e93b 100644 --- a/src/core/hle/service/hid/controllers/console_six_axis.h +++ b/src/hid_core/resources/six_axis/console_six_axis.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "core/hle/service/hid/controllers/controller_base.h" | 6 | #include "hid_core/resources/controller_base.h" |
| 7 | 7 | ||
| 8 | namespace Core::HID { | 8 | namespace Core::HID { |
| 9 | class EmulatedConsole; | 9 | class EmulatedConsole; |
diff --git a/src/core/hle/service/hid/controllers/seven_six_axis.cpp b/src/hid_core/resources/six_axis/seven_six_axis.cpp index 495568484..d84ef31e1 100644 --- a/src/core/hle/service/hid/controllers/seven_six_axis.cpp +++ b/src/hid_core/resources/six_axis/seven_six_axis.cpp | |||
| @@ -6,11 +6,11 @@ | |||
| 6 | #include "core/core.h" | 6 | #include "core/core.h" |
| 7 | #include "core/core_timing.h" | 7 | #include "core/core_timing.h" |
| 8 | #include "core/frontend/emu_window.h" | 8 | #include "core/frontend/emu_window.h" |
| 9 | #include "core/hid/emulated_console.h" | ||
| 10 | #include "core/hid/emulated_devices.h" | ||
| 11 | #include "core/hid/hid_core.h" | ||
| 12 | #include "core/hle/service/hid/controllers/seven_six_axis.h" | ||
| 13 | #include "core/memory.h" | 9 | #include "core/memory.h" |
| 10 | #include "hid_core/frontend/emulated_console.h" | ||
| 11 | #include "hid_core/frontend/emulated_devices.h" | ||
| 12 | #include "hid_core/hid_core.h" | ||
| 13 | #include "hid_core/resources/six_axis/seven_six_axis.h" | ||
| 14 | 14 | ||
| 15 | namespace Service::HID { | 15 | namespace Service::HID { |
| 16 | SevenSixAxis::SevenSixAxis(Core::System& system_) | 16 | SevenSixAxis::SevenSixAxis(Core::System& system_) |
diff --git a/src/core/hle/service/hid/controllers/seven_six_axis.h b/src/hid_core/resources/six_axis/seven_six_axis.h index 40e3f5d12..0a26c77c9 100644 --- a/src/core/hle/service/hid/controllers/seven_six_axis.h +++ b/src/hid_core/resources/six_axis/seven_six_axis.h | |||
| @@ -6,8 +6,8 @@ | |||
| 6 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 7 | #include "common/quaternion.h" | 7 | #include "common/quaternion.h" |
| 8 | #include "common/typed_address.h" | 8 | #include "common/typed_address.h" |
| 9 | #include "core/hle/service/hid/controllers/controller_base.h" | 9 | #include "hid_core/resources/controller_base.h" |
| 10 | #include "core/hle/service/hid/ring_lifo.h" | 10 | #include "hid_core/resources/ring_lifo.h" |
| 11 | 11 | ||
| 12 | namespace Core { | 12 | namespace Core { |
| 13 | class System; | 13 | class System; |
diff --git a/src/core/hle/service/hid/controllers/six_axis.cpp b/src/hid_core/resources/six_axis/six_axis.cpp index adab60911..8a9677c50 100644 --- a/src/core/hle/service/hid/controllers/six_axis.cpp +++ b/src/hid_core/resources/six_axis/six_axis.cpp | |||
| @@ -3,13 +3,13 @@ | |||
| 3 | 3 | ||
| 4 | #include "common/common_types.h" | 4 | #include "common/common_types.h" |
| 5 | #include "core/core_timing.h" | 5 | #include "core/core_timing.h" |
| 6 | #include "core/hid/emulated_controller.h" | 6 | #include "hid_core/frontend/emulated_controller.h" |
| 7 | #include "core/hid/hid_core.h" | 7 | #include "hid_core/hid_core.h" |
| 8 | #include "core/hle/service/hid/controllers/npad.h" | 8 | #include "hid_core/hid_result.h" |
| 9 | #include "core/hle/service/hid/controllers/six_axis.h" | 9 | #include "hid_core/hid_util.h" |
| 10 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 10 | #include "hid_core/resources/npad/npad.h" |
| 11 | #include "core/hle/service/hid/errors.h" | 11 | #include "hid_core/resources/shared_memory_format.h" |
| 12 | #include "core/hle/service/hid/hid_util.h" | 12 | #include "hid_core/resources/six_axis/six_axis.h" |
| 13 | 13 | ||
| 14 | namespace Service::HID { | 14 | namespace Service::HID { |
| 15 | 15 | ||
diff --git a/src/core/hle/service/hid/controllers/six_axis.h b/src/hid_core/resources/six_axis/six_axis.h index 4c4f5dc7b..1054e1b27 100644 --- a/src/core/hle/service/hid/controllers/six_axis.h +++ b/src/hid_core/resources/six_axis/six_axis.h | |||
| @@ -4,9 +4,9 @@ | |||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 7 | #include "core/hid/hid_types.h" | 7 | #include "hid_core/hid_types.h" |
| 8 | #include "core/hle/service/hid/controllers/controller_base.h" | 8 | #include "hid_core/resources/controller_base.h" |
| 9 | #include "core/hle/service/hid/ring_lifo.h" | 9 | #include "hid_core/resources/ring_lifo.h" |
| 10 | 10 | ||
| 11 | namespace Core::HID { | 11 | namespace Core::HID { |
| 12 | class EmulatedController; | 12 | class EmulatedController; |
diff --git a/src/core/hle/service/hid/controllers/capture_button.cpp b/src/hid_core/resources/system_buttons/capture_button.cpp index 7847c080e..70973ae25 100644 --- a/src/core/hle/service/hid/controllers/capture_button.cpp +++ b/src/hid_core/resources/system_buttons/capture_button.cpp | |||
| @@ -2,9 +2,9 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/core_timing.h" | 4 | #include "core/core_timing.h" |
| 5 | #include "core/hle/service/hid/controllers/applet_resource.h" | 5 | #include "hid_core/resources/applet_resource.h" |
| 6 | #include "core/hle/service/hid/controllers/capture_button.h" | 6 | #include "hid_core/resources/shared_memory_format.h" |
| 7 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 7 | #include "hid_core/resources/system_buttons/capture_button.h" |
| 8 | 8 | ||
| 9 | namespace Service::HID { | 9 | namespace Service::HID { |
| 10 | 10 | ||
diff --git a/src/core/hle/service/hid/controllers/capture_button.h b/src/hid_core/resources/system_buttons/capture_button.h index dcc4715c5..ad95d7cad 100644 --- a/src/core/hle/service/hid/controllers/capture_button.h +++ b/src/hid_core/resources/system_buttons/capture_button.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "core/hle/service/hid/controllers/controller_base.h" | 6 | #include "hid_core/resources/controller_base.h" |
| 7 | 7 | ||
| 8 | namespace Service::HID { | 8 | namespace Service::HID { |
| 9 | 9 | ||
diff --git a/src/core/hle/service/hid/controllers/home_button.cpp b/src/hid_core/resources/system_buttons/home_button.cpp index 1397379f3..f9c1f44b5 100644 --- a/src/core/hle/service/hid/controllers/home_button.cpp +++ b/src/hid_core/resources/system_buttons/home_button.cpp | |||
| @@ -2,9 +2,9 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/core_timing.h" | 4 | #include "core/core_timing.h" |
| 5 | #include "core/hle/service/hid/controllers/applet_resource.h" | 5 | #include "hid_core/resources/applet_resource.h" |
| 6 | #include "core/hle/service/hid/controllers/home_button.h" | 6 | #include "hid_core/resources/shared_memory_format.h" |
| 7 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 7 | #include "hid_core/resources/system_buttons/home_button.h" |
| 8 | 8 | ||
| 9 | namespace Service::HID { | 9 | namespace Service::HID { |
| 10 | 10 | ||
diff --git a/src/core/hle/service/hid/controllers/home_button.h b/src/hid_core/resources/system_buttons/home_button.h index e91c2aa5d..ecf8327f4 100644 --- a/src/core/hle/service/hid/controllers/home_button.h +++ b/src/hid_core/resources/system_buttons/home_button.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "core/hle/service/hid/controllers/controller_base.h" | 6 | #include "hid_core/resources/controller_base.h" |
| 7 | 7 | ||
| 8 | namespace Service::HID { | 8 | namespace Service::HID { |
| 9 | 9 | ||
diff --git a/src/core/hle/service/hid/controllers/sleep_button.cpp b/src/hid_core/resources/system_buttons/sleep_button.cpp index d44b1f4cc..22adf501f 100644 --- a/src/core/hle/service/hid/controllers/sleep_button.cpp +++ b/src/hid_core/resources/system_buttons/sleep_button.cpp | |||
| @@ -2,9 +2,9 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/core_timing.h" | 4 | #include "core/core_timing.h" |
| 5 | #include "core/hle/service/hid/controllers/applet_resource.h" | 5 | #include "hid_core/resources/applet_resource.h" |
| 6 | #include "core/hle/service/hid/controllers/sleep_button.h" | 6 | #include "hid_core/resources/shared_memory_format.h" |
| 7 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 7 | #include "hid_core/resources/system_buttons/sleep_button.h" |
| 8 | 8 | ||
| 9 | namespace Service::HID { | 9 | namespace Service::HID { |
| 10 | 10 | ||
diff --git a/src/core/hle/service/hid/controllers/sleep_button.h b/src/hid_core/resources/system_buttons/sleep_button.h index 59964bf63..f9ed38c33 100644 --- a/src/core/hle/service/hid/controllers/sleep_button.h +++ b/src/hid_core/resources/system_buttons/sleep_button.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "core/hle/service/hid/controllers/controller_base.h" | 6 | #include "hid_core/resources/controller_base.h" |
| 7 | 7 | ||
| 8 | namespace Service::HID { | 8 | namespace Service::HID { |
| 9 | 9 | ||
diff --git a/src/core/hle/service/hid/controllers/gesture.cpp b/src/hid_core/resources/touch_screen/gesture.cpp index c73da13ee..0ecc0941f 100644 --- a/src/core/hle/service/hid/controllers/gesture.cpp +++ b/src/hid_core/resources/touch_screen/gesture.cpp | |||
| @@ -4,11 +4,11 @@ | |||
| 4 | #include "common/math_util.h" | 4 | #include "common/math_util.h" |
| 5 | #include "common/settings.h" | 5 | #include "common/settings.h" |
| 6 | #include "core/frontend/emu_window.h" | 6 | #include "core/frontend/emu_window.h" |
| 7 | #include "core/hid/emulated_console.h" | 7 | #include "hid_core/frontend/emulated_console.h" |
| 8 | #include "core/hid/hid_core.h" | 8 | #include "hid_core/hid_core.h" |
| 9 | #include "core/hle/service/hid/controllers/applet_resource.h" | 9 | #include "hid_core/resources/applet_resource.h" |
| 10 | #include "core/hle/service/hid/controllers/gesture.h" | 10 | #include "hid_core/resources/shared_memory_format.h" |
| 11 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 11 | #include "hid_core/resources/touch_screen/gesture.h" |
| 12 | 12 | ||
| 13 | namespace Service::HID { | 13 | namespace Service::HID { |
| 14 | // HW is around 700, value is set to 400 to make it easier to trigger with mouse | 14 | // HW is around 700, value is set to 400 to make it easier to trigger with mouse |
diff --git a/src/core/hle/service/hid/controllers/gesture.h b/src/hid_core/resources/touch_screen/gesture.h index 78da1552a..32e9a8690 100644 --- a/src/core/hle/service/hid/controllers/gesture.h +++ b/src/hid_core/resources/touch_screen/gesture.h | |||
| @@ -6,8 +6,8 @@ | |||
| 6 | #include <array> | 6 | #include <array> |
| 7 | 7 | ||
| 8 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 9 | #include "core/hle/service/hid/controllers/controller_base.h" | 9 | #include "hid_core/resources/controller_base.h" |
| 10 | #include "core/hle/service/hid/controllers/types/touch_types.h" | 10 | #include "hid_core/resources/touch_screen/touch_types.h" |
| 11 | 11 | ||
| 12 | namespace Core::HID { | 12 | namespace Core::HID { |
| 13 | class EmulatedConsole; | 13 | class EmulatedConsole; |
diff --git a/src/core/hle/service/hid/controllers/types/gesture_types.h b/src/hid_core/resources/touch_screen/gesture_types.h index b4f034cd3..b4f034cd3 100644 --- a/src/core/hle/service/hid/controllers/types/gesture_types.h +++ b/src/hid_core/resources/touch_screen/gesture_types.h | |||
diff --git a/src/core/hle/service/hid/controllers/touchscreen.cpp b/src/hid_core/resources/touch_screen/touch_screen.cpp index b585a5829..48d956c51 100644 --- a/src/core/hle/service/hid/controllers/touchscreen.cpp +++ b/src/hid_core/resources/touch_screen/touch_screen.cpp | |||
| @@ -6,11 +6,11 @@ | |||
| 6 | #include "common/settings.h" | 6 | #include "common/settings.h" |
| 7 | #include "core/core_timing.h" | 7 | #include "core/core_timing.h" |
| 8 | #include "core/frontend/emu_window.h" | 8 | #include "core/frontend/emu_window.h" |
| 9 | #include "core/hid/emulated_console.h" | 9 | #include "hid_core/frontend/emulated_console.h" |
| 10 | #include "core/hid/hid_core.h" | 10 | #include "hid_core/hid_core.h" |
| 11 | #include "core/hle/service/hid/controllers/applet_resource.h" | 11 | #include "hid_core/resources/applet_resource.h" |
| 12 | #include "core/hle/service/hid/controllers/touchscreen.h" | 12 | #include "hid_core/resources/shared_memory_format.h" |
| 13 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 13 | #include "hid_core/resources/touch_screen/touch_screen.h" |
| 14 | 14 | ||
| 15 | namespace Service::HID { | 15 | namespace Service::HID { |
| 16 | 16 | ||
diff --git a/src/core/hle/service/hid/controllers/touchscreen.h b/src/hid_core/resources/touch_screen/touch_screen.h index 945d359be..4b3824742 100644 --- a/src/core/hle/service/hid/controllers/touchscreen.h +++ b/src/hid_core/resources/touch_screen/touch_screen.h | |||
| @@ -5,9 +5,9 @@ | |||
| 5 | 5 | ||
| 6 | #include <array> | 6 | #include <array> |
| 7 | 7 | ||
| 8 | #include "core/hid/hid_types.h" | 8 | #include "hid_core/hid_types.h" |
| 9 | #include "core/hle/service/hid/controllers/controller_base.h" | 9 | #include "hid_core/resources/controller_base.h" |
| 10 | #include "core/hle/service/hid/controllers/types/touch_types.h" | 10 | #include "hid_core/resources/touch_screen/touch_types.h" |
| 11 | 11 | ||
| 12 | namespace Core::HID { | 12 | namespace Core::HID { |
| 13 | class EmulatedConsole; | 13 | class EmulatedConsole; |
diff --git a/src/core/hle/service/hid/controllers/types/touch_types.h b/src/hid_core/resources/touch_screen/touch_types.h index efeaa796d..97ee847da 100644 --- a/src/core/hle/service/hid/controllers/types/touch_types.h +++ b/src/hid_core/resources/touch_screen/touch_types.h | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | #include "common/common_funcs.h" | 10 | #include "common/common_funcs.h" |
| 11 | #include "common/common_types.h" | 11 | #include "common/common_types.h" |
| 12 | #include "common/point.h" | 12 | #include "common/point.h" |
| 13 | #include "core/hid/hid_types.h" | 13 | #include "hid_core/hid_types.h" |
| 14 | 14 | ||
| 15 | namespace Service::HID { | 15 | namespace Service::HID { |
| 16 | static constexpr std::size_t MAX_FINGERS = 16; | 16 | static constexpr std::size_t MAX_FINGERS = 16; |
diff --git a/src/core/hle/service/hid/controllers/unique_pad.cpp b/src/hid_core/resources/unique_pad/unique_pad.cpp index 6c543031d..892bbe3c9 100644 --- a/src/core/hle/service/hid/controllers/unique_pad.cpp +++ b/src/hid_core/resources/unique_pad/unique_pad.cpp | |||
| @@ -2,9 +2,9 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/core_timing.h" | 4 | #include "core/core_timing.h" |
| 5 | #include "core/hle/service/hid/controllers/applet_resource.h" | 5 | #include "hid_core/resources/applet_resource.h" |
| 6 | #include "core/hle/service/hid/controllers/types/shared_memory_format.h" | 6 | #include "hid_core/resources/shared_memory_format.h" |
| 7 | #include "core/hle/service/hid/controllers/unique_pad.h" | 7 | #include "hid_core/resources/unique_pad/unique_pad.h" |
| 8 | 8 | ||
| 9 | namespace Service::HID { | 9 | namespace Service::HID { |
| 10 | 10 | ||
diff --git a/src/core/hle/service/hid/controllers/unique_pad.h b/src/hid_core/resources/unique_pad/unique_pad.h index 966368264..674ad1691 100644 --- a/src/core/hle/service/hid/controllers/unique_pad.h +++ b/src/hid_core/resources/unique_pad/unique_pad.h | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "core/hle/service/hid/controllers/controller_base.h" | 6 | #include "hid_core/resources/controller_base.h" |
| 7 | 7 | ||
| 8 | namespace Service::HID { | 8 | namespace Service::HID { |
| 9 | 9 | ||
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt index 5c127c8ef..d2fbea488 100644 --- a/src/input_common/CMakeLists.txt +++ b/src/input_common/CMakeLists.txt | |||
| @@ -87,7 +87,7 @@ if (ENABLE_LIBUSB) | |||
| 87 | endif() | 87 | endif() |
| 88 | 88 | ||
| 89 | create_target_directory_groups(input_common) | 89 | create_target_directory_groups(input_common) |
| 90 | target_link_libraries(input_common PUBLIC core PRIVATE common Boost::headers) | 90 | target_link_libraries(input_common PUBLIC hid_core PRIVATE common Boost::headers) |
| 91 | 91 | ||
| 92 | if (YUZU_USE_PRECOMPILED_HEADERS) | 92 | if (YUZU_USE_PRECOMPILED_HEADERS) |
| 93 | target_precompile_headers(input_common PRIVATE precompiled_headers.h) | 93 | target_precompile_headers(input_common PRIVATE precompiled_headers.h) |
diff --git a/src/yuzu/applets/qt_controller.cpp b/src/yuzu/applets/qt_controller.cpp index 9e5319716..8b340ee6c 100644 --- a/src/yuzu/applets/qt_controller.cpp +++ b/src/yuzu/applets/qt_controller.cpp | |||
| @@ -9,11 +9,11 @@ | |||
| 9 | #include "common/settings_enums.h" | 9 | #include "common/settings_enums.h" |
| 10 | #include "common/string_util.h" | 10 | #include "common/string_util.h" |
| 11 | #include "core/core.h" | 11 | #include "core/core.h" |
| 12 | #include "core/hid/emulated_controller.h" | ||
| 13 | #include "core/hid/hid_core.h" | ||
| 14 | #include "core/hid/hid_types.h" | ||
| 15 | #include "core/hle/service/hid/controllers/npad.h" | ||
| 16 | #include "core/hle/service/sm/sm.h" | 12 | #include "core/hle/service/sm/sm.h" |
| 13 | #include "hid_core/frontend/emulated_controller.h" | ||
| 14 | #include "hid_core/hid_core.h" | ||
| 15 | #include "hid_core/hid_types.h" | ||
| 16 | #include "hid_core/resources/npad/npad.h" | ||
| 17 | #include "ui_qt_controller.h" | 17 | #include "ui_qt_controller.h" |
| 18 | #include "yuzu/applets/qt_controller.h" | 18 | #include "yuzu/applets/qt_controller.h" |
| 19 | #include "yuzu/configuration/configure_input.h" | 19 | #include "yuzu/configuration/configure_input.h" |
diff --git a/src/yuzu/applets/qt_software_keyboard.cpp b/src/yuzu/applets/qt_software_keyboard.cpp index 4ae49506d..bbe17c35e 100644 --- a/src/yuzu/applets/qt_software_keyboard.cpp +++ b/src/yuzu/applets/qt_software_keyboard.cpp | |||
| @@ -9,10 +9,10 @@ | |||
| 9 | #include "common/settings.h" | 9 | #include "common/settings.h" |
| 10 | #include "common/string_util.h" | 10 | #include "common/string_util.h" |
| 11 | #include "core/core.h" | 11 | #include "core/core.h" |
| 12 | #include "core/hid/emulated_controller.h" | 12 | #include "hid_core/frontend/emulated_controller.h" |
| 13 | #include "core/hid/hid_core.h" | 13 | #include "hid_core/frontend/input_interpreter.h" |
| 14 | #include "core/hid/hid_types.h" | 14 | #include "hid_core/hid_core.h" |
| 15 | #include "core/hid/input_interpreter.h" | 15 | #include "hid_core/hid_types.h" |
| 16 | #include "ui_qt_software_keyboard.h" | 16 | #include "ui_qt_software_keyboard.h" |
| 17 | #include "yuzu/applets/qt_software_keyboard.h" | 17 | #include "yuzu/applets/qt_software_keyboard.h" |
| 18 | #include "yuzu/main.h" | 18 | #include "yuzu/main.h" |
diff --git a/src/yuzu/applets/qt_web_browser.cpp b/src/yuzu/applets/qt_web_browser.cpp index 28acc0ff8..34c5fd3be 100644 --- a/src/yuzu/applets/qt_web_browser.cpp +++ b/src/yuzu/applets/qt_web_browser.cpp | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | #include <QWebEngineSettings> | 13 | #include <QWebEngineSettings> |
| 14 | #include <QWebEngineUrlScheme> | 14 | #include <QWebEngineUrlScheme> |
| 15 | 15 | ||
| 16 | #include "core/hid/input_interpreter.h" | 16 | #include "hid_core/frontend/input_interpreter.h" |
| 17 | #include "yuzu/applets/qt_web_browser_scripts.h" | 17 | #include "yuzu/applets/qt_web_browser_scripts.h" |
| 18 | #endif | 18 | #endif |
| 19 | 19 | ||
diff --git a/src/yuzu/configuration/configure_debug_controller.cpp b/src/yuzu/configuration/configure_debug_controller.cpp index 42abe9119..74208d1cc 100644 --- a/src/yuzu/configuration/configure_debug_controller.cpp +++ b/src/yuzu/configuration/configure_debug_controller.cpp | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project | 1 | // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "core/hid/hid_core.h" | 4 | #include "hid_core/hid_core.h" |
| 5 | #include "ui_configure_debug_controller.h" | 5 | #include "ui_configure_debug_controller.h" |
| 6 | #include "yuzu/configuration/configure_debug_controller.h" | 6 | #include "yuzu/configuration/configure_debug_controller.h" |
| 7 | #include "yuzu/configuration/configure_input_player.h" | 7 | #include "yuzu/configuration/configure_input_player.h" |
diff --git a/src/yuzu/configuration/configure_hotkeys.cpp b/src/yuzu/configuration/configure_hotkeys.cpp index 76fc33e49..3d18670ce 100644 --- a/src/yuzu/configuration/configure_hotkeys.cpp +++ b/src/yuzu/configuration/configure_hotkeys.cpp | |||
| @@ -6,8 +6,8 @@ | |||
| 6 | #include <QStandardItemModel> | 6 | #include <QStandardItemModel> |
| 7 | #include <QTimer> | 7 | #include <QTimer> |
| 8 | 8 | ||
| 9 | #include "core/hid/emulated_controller.h" | 9 | #include "hid_core/frontend/emulated_controller.h" |
| 10 | #include "core/hid/hid_core.h" | 10 | #include "hid_core/hid_core.h" |
| 11 | 11 | ||
| 12 | #include "frontend_common/config.h" | 12 | #include "frontend_common/config.h" |
| 13 | #include "ui_configure_hotkeys.h" | 13 | #include "ui_configure_hotkeys.h" |
diff --git a/src/yuzu/configuration/configure_input.cpp b/src/yuzu/configuration/configure_input.cpp index 02e23cce6..49ec52546 100644 --- a/src/yuzu/configuration/configure_input.cpp +++ b/src/yuzu/configuration/configure_input.cpp | |||
| @@ -7,12 +7,12 @@ | |||
| 7 | #include "common/settings.h" | 7 | #include "common/settings.h" |
| 8 | #include "common/settings_enums.h" | 8 | #include "common/settings_enums.h" |
| 9 | #include "core/core.h" | 9 | #include "core/core.h" |
| 10 | #include "core/hid/emulated_controller.h" | ||
| 11 | #include "core/hid/hid_core.h" | ||
| 12 | #include "core/hle/service/am/am.h" | 10 | #include "core/hle/service/am/am.h" |
| 13 | #include "core/hle/service/am/applet_ae.h" | 11 | #include "core/hle/service/am/applet_ae.h" |
| 14 | #include "core/hle/service/am/applet_oe.h" | 12 | #include "core/hle/service/am/applet_oe.h" |
| 15 | #include "core/hle/service/sm/sm.h" | 13 | #include "core/hle/service/sm/sm.h" |
| 14 | #include "hid_core/frontend/emulated_controller.h" | ||
| 15 | #include "hid_core/hid_core.h" | ||
| 16 | #include "ui_configure_input.h" | 16 | #include "ui_configure_input.h" |
| 17 | #include "ui_configure_input_advanced.h" | 17 | #include "ui_configure_input_advanced.h" |
| 18 | #include "ui_configure_input_player.h" | 18 | #include "ui_configure_input_player.h" |
diff --git a/src/yuzu/configuration/configure_input_advanced.cpp b/src/yuzu/configuration/configure_input_advanced.cpp index 441cea3f6..d6c4e09ec 100644 --- a/src/yuzu/configuration/configure_input_advanced.cpp +++ b/src/yuzu/configuration/configure_input_advanced.cpp | |||
| @@ -4,8 +4,8 @@ | |||
| 4 | #include <QColorDialog> | 4 | #include <QColorDialog> |
| 5 | #include "common/settings.h" | 5 | #include "common/settings.h" |
| 6 | #include "core/core.h" | 6 | #include "core/core.h" |
| 7 | #include "core/hid/emulated_controller.h" | 7 | #include "hid_core/frontend/emulated_controller.h" |
| 8 | #include "core/hid/hid_core.h" | 8 | #include "hid_core/hid_core.h" |
| 9 | #include "ui_configure_input_advanced.h" | 9 | #include "ui_configure_input_advanced.h" |
| 10 | #include "yuzu/configuration/configure_input_advanced.h" | 10 | #include "yuzu/configuration/configure_input_advanced.h" |
| 11 | 11 | ||
diff --git a/src/yuzu/configuration/configure_input_per_game.cpp b/src/yuzu/configuration/configure_input_per_game.cpp index 8d9f65a05..eea7ec369 100644 --- a/src/yuzu/configuration/configure_input_per_game.cpp +++ b/src/yuzu/configuration/configure_input_per_game.cpp | |||
| @@ -3,9 +3,9 @@ | |||
| 3 | 3 | ||
| 4 | #include "common/settings.h" | 4 | #include "common/settings.h" |
| 5 | #include "core/core.h" | 5 | #include "core/core.h" |
| 6 | #include "core/hid/emulated_controller.h" | ||
| 7 | #include "core/hid/hid_core.h" | ||
| 8 | #include "frontend_common/config.h" | 6 | #include "frontend_common/config.h" |
| 7 | #include "hid_core/frontend/emulated_controller.h" | ||
| 8 | #include "hid_core/hid_core.h" | ||
| 9 | #include "ui_configure_input_per_game.h" | 9 | #include "ui_configure_input_per_game.h" |
| 10 | #include "yuzu/configuration/configure_input_per_game.h" | 10 | #include "yuzu/configuration/configure_input_per_game.h" |
| 11 | #include "yuzu/configuration/input_profiles.h" | 11 | #include "yuzu/configuration/input_profiles.h" |
diff --git a/src/yuzu/configuration/configure_input_player.cpp b/src/yuzu/configuration/configure_input_player.cpp index 0f7b3714e..f3552191a 100644 --- a/src/yuzu/configuration/configure_input_player.cpp +++ b/src/yuzu/configuration/configure_input_player.cpp | |||
| @@ -13,10 +13,10 @@ | |||
| 13 | #include "common/assert.h" | 13 | #include "common/assert.h" |
| 14 | #include "common/param_package.h" | 14 | #include "common/param_package.h" |
| 15 | #include "configuration/qt_config.h" | 15 | #include "configuration/qt_config.h" |
| 16 | #include "core/hid/emulated_controller.h" | ||
| 17 | #include "core/hid/hid_core.h" | ||
| 18 | #include "core/hid/hid_types.h" | ||
| 19 | #include "frontend_common/config.h" | 16 | #include "frontend_common/config.h" |
| 17 | #include "hid_core/frontend/emulated_controller.h" | ||
| 18 | #include "hid_core/hid_core.h" | ||
| 19 | #include "hid_core/hid_types.h" | ||
| 20 | #include "input_common/drivers/keyboard.h" | 20 | #include "input_common/drivers/keyboard.h" |
| 21 | #include "input_common/drivers/mouse.h" | 21 | #include "input_common/drivers/mouse.h" |
| 22 | #include "input_common/main.h" | 22 | #include "input_common/main.h" |
diff --git a/src/yuzu/configuration/configure_input_player_widget.cpp b/src/yuzu/configuration/configure_input_player_widget.cpp index 550cff9a0..19fdca7d3 100644 --- a/src/yuzu/configuration/configure_input_player_widget.cpp +++ b/src/yuzu/configuration/configure_input_player_widget.cpp | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | #include <QPainter> | 6 | #include <QPainter> |
| 7 | #include <QTimer> | 7 | #include <QTimer> |
| 8 | 8 | ||
| 9 | #include "core/hid/emulated_controller.h" | 9 | #include "hid_core/frontend/emulated_controller.h" |
| 10 | #include "yuzu/configuration/configure_input_player_widget.h" | 10 | #include "yuzu/configuration/configure_input_player_widget.h" |
| 11 | 11 | ||
| 12 | PlayerControlPreview::PlayerControlPreview(QWidget* parent) : QFrame(parent) { | 12 | PlayerControlPreview::PlayerControlPreview(QWidget* parent) : QFrame(parent) { |
diff --git a/src/yuzu/configuration/configure_input_player_widget.h b/src/yuzu/configuration/configure_input_player_widget.h index a16943c3c..76340912d 100644 --- a/src/yuzu/configuration/configure_input_player_widget.h +++ b/src/yuzu/configuration/configure_input_player_widget.h | |||
| @@ -10,8 +10,8 @@ | |||
| 10 | #include "common/input.h" | 10 | #include "common/input.h" |
| 11 | #include "common/settings_input.h" | 11 | #include "common/settings_input.h" |
| 12 | #include "common/vector_math.h" | 12 | #include "common/vector_math.h" |
| 13 | #include "core/hid/emulated_controller.h" | 13 | #include "hid_core/frontend/emulated_controller.h" |
| 14 | #include "core/hid/hid_types.h" | 14 | #include "hid_core/hid_types.h" |
| 15 | 15 | ||
| 16 | class QLabel; | 16 | class QLabel; |
| 17 | 17 | ||
diff --git a/src/yuzu/configuration/configure_ringcon.cpp b/src/yuzu/configuration/configure_ringcon.cpp index 9572ff43c..3a7f6101d 100644 --- a/src/yuzu/configuration/configure_ringcon.cpp +++ b/src/yuzu/configuration/configure_ringcon.cpp | |||
| @@ -9,8 +9,8 @@ | |||
| 9 | #include <fmt/format.h> | 9 | #include <fmt/format.h> |
| 10 | 10 | ||
| 11 | #include "configuration/qt_config.h" | 11 | #include "configuration/qt_config.h" |
| 12 | #include "core/hid/emulated_controller.h" | 12 | #include "hid_core/frontend/emulated_controller.h" |
| 13 | #include "core/hid/hid_core.h" | 13 | #include "hid_core/hid_core.h" |
| 14 | #include "input_common/drivers/keyboard.h" | 14 | #include "input_common/drivers/keyboard.h" |
| 15 | #include "input_common/drivers/mouse.h" | 15 | #include "input_common/drivers/mouse.h" |
| 16 | #include "input_common/main.h" | 16 | #include "input_common/main.h" |
diff --git a/src/yuzu/configuration/configure_vibration.cpp b/src/yuzu/configuration/configure_vibration.cpp index 68c28b320..d898d8acc 100644 --- a/src/yuzu/configuration/configure_vibration.cpp +++ b/src/yuzu/configuration/configure_vibration.cpp | |||
| @@ -2,9 +2,9 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "common/settings.h" | 4 | #include "common/settings.h" |
| 5 | #include "core/hid/emulated_controller.h" | 5 | #include "hid_core/frontend/emulated_controller.h" |
| 6 | #include "core/hid/hid_core.h" | 6 | #include "hid_core/hid_core.h" |
| 7 | #include "core/hid/hid_types.h" | 7 | #include "hid_core/hid_types.h" |
| 8 | #include "ui_configure_vibration.h" | 8 | #include "ui_configure_vibration.h" |
| 9 | #include "yuzu/configuration/configure_vibration.h" | 9 | #include "yuzu/configuration/configure_vibration.h" |
| 10 | 10 | ||
diff --git a/src/yuzu/debugger/controller.cpp b/src/yuzu/debugger/controller.cpp index e2f55ebae..216d2974d 100644 --- a/src/yuzu/debugger/controller.cpp +++ b/src/yuzu/debugger/controller.cpp | |||
| @@ -5,8 +5,8 @@ | |||
| 5 | #include <QLayout> | 5 | #include <QLayout> |
| 6 | #include <QString> | 6 | #include <QString> |
| 7 | #include "common/settings.h" | 7 | #include "common/settings.h" |
| 8 | #include "core/hid/emulated_controller.h" | 8 | #include "hid_core/frontend/emulated_controller.h" |
| 9 | #include "core/hid/hid_core.h" | 9 | #include "hid_core/hid_core.h" |
| 10 | #include "input_common/drivers/tas_input.h" | 10 | #include "input_common/drivers/tas_input.h" |
| 11 | #include "input_common/main.h" | 11 | #include "input_common/main.h" |
| 12 | #include "yuzu/configuration/configure_input_player_widget.h" | 12 | #include "yuzu/configuration/configure_input_player_widget.h" |
diff --git a/src/yuzu/hotkeys.cpp b/src/yuzu/hotkeys.cpp index eebfbf155..b7693ad0d 100644 --- a/src/yuzu/hotkeys.cpp +++ b/src/yuzu/hotkeys.cpp | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | #include <QTreeWidgetItem> | 6 | #include <QTreeWidgetItem> |
| 7 | #include <QtGlobal> | 7 | #include <QtGlobal> |
| 8 | 8 | ||
| 9 | #include "core/hid/emulated_controller.h" | 9 | #include "hid_core/frontend/emulated_controller.h" |
| 10 | #include "yuzu/hotkeys.h" | 10 | #include "yuzu/hotkeys.h" |
| 11 | #include "yuzu/uisettings.h" | 11 | #include "yuzu/uisettings.h" |
| 12 | 12 | ||
diff --git a/src/yuzu/hotkeys.h b/src/yuzu/hotkeys.h index e11332d2e..bdc081649 100644 --- a/src/yuzu/hotkeys.h +++ b/src/yuzu/hotkeys.h | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | #include <QKeySequence> | 7 | #include <QKeySequence> |
| 8 | #include <QString> | 8 | #include <QString> |
| 9 | #include <QWidget> | 9 | #include <QWidget> |
| 10 | #include "core/hid/hid_types.h" | 10 | #include "hid_core/hid_types.h" |
| 11 | 11 | ||
| 12 | class QDialog; | 12 | class QDialog; |
| 13 | class QSettings; | 13 | class QSettings; |
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index c789c1e59..2a83486f9 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -42,13 +42,13 @@ | |||
| 42 | #include "core/frontend/applets/general_frontend.h" | 42 | #include "core/frontend/applets/general_frontend.h" |
| 43 | #include "core/frontend/applets/mii_edit.h" | 43 | #include "core/frontend/applets/mii_edit.h" |
| 44 | #include "core/frontend/applets/software_keyboard.h" | 44 | #include "core/frontend/applets/software_keyboard.h" |
| 45 | #include "core/hid/emulated_controller.h" | ||
| 46 | #include "core/hid/hid_core.h" | ||
| 47 | #include "core/hle/service/acc/profile_manager.h" | 45 | #include "core/hle/service/acc/profile_manager.h" |
| 48 | #include "core/hle/service/am/applet_ae.h" | 46 | #include "core/hle/service/am/applet_ae.h" |
| 49 | #include "core/hle/service/am/applet_oe.h" | 47 | #include "core/hle/service/am/applet_oe.h" |
| 50 | #include "core/hle/service/am/applets/applets.h" | 48 | #include "core/hle/service/am/applets/applets.h" |
| 51 | #include "core/hle/service/set/set_sys.h" | 49 | #include "core/hle/service/set/set_sys.h" |
| 50 | #include "hid_core/frontend/emulated_controller.h" | ||
| 51 | #include "hid_core/hid_core.h" | ||
| 52 | #include "yuzu/multiplayer/state.h" | 52 | #include "yuzu/multiplayer/state.h" |
| 53 | #include "yuzu/util/controller_navigation.h" | 53 | #include "yuzu/util/controller_navigation.h" |
| 54 | 54 | ||
diff --git a/src/yuzu/util/controller_navigation.cpp b/src/yuzu/util/controller_navigation.cpp index d49ae67cd..2690b075d 100644 --- a/src/yuzu/util/controller_navigation.cpp +++ b/src/yuzu/util/controller_navigation.cpp | |||
| @@ -2,8 +2,8 @@ | |||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include "common/settings_input.h" | 4 | #include "common/settings_input.h" |
| 5 | #include "core/hid/emulated_controller.h" | 5 | #include "hid_core/frontend/emulated_controller.h" |
| 6 | #include "core/hid/hid_core.h" | 6 | #include "hid_core/hid_core.h" |
| 7 | #include "yuzu/util/controller_navigation.h" | 7 | #include "yuzu/util/controller_navigation.h" |
| 8 | 8 | ||
| 9 | ControllerNavigation::ControllerNavigation(Core::HID::HIDCore& hid_core, QWidget* parent) { | 9 | ControllerNavigation::ControllerNavigation(Core::HID::HIDCore& hid_core, QWidget* parent) { |
diff --git a/src/yuzu/util/overlay_dialog.cpp b/src/yuzu/util/overlay_dialog.cpp index ee35a3e15..466bbe7b2 100644 --- a/src/yuzu/util/overlay_dialog.cpp +++ b/src/yuzu/util/overlay_dialog.cpp | |||
| @@ -6,8 +6,8 @@ | |||
| 6 | #include <QWindow> | 6 | #include <QWindow> |
| 7 | 7 | ||
| 8 | #include "core/core.h" | 8 | #include "core/core.h" |
| 9 | #include "core/hid/hid_types.h" | 9 | #include "hid_core/frontend/input_interpreter.h" |
| 10 | #include "core/hid/input_interpreter.h" | 10 | #include "hid_core/hid_types.h" |
| 11 | #include "ui_overlay_dialog.h" | 11 | #include "ui_overlay_dialog.h" |
| 12 | #include "yuzu/util/overlay_dialog.h" | 12 | #include "yuzu/util/overlay_dialog.h" |
| 13 | 13 | ||
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp index 1a35d471c..eae614f9d 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | |||
| @@ -7,8 +7,8 @@ | |||
| 7 | #include "common/scm_rev.h" | 7 | #include "common/scm_rev.h" |
| 8 | #include "common/settings.h" | 8 | #include "common/settings.h" |
| 9 | #include "core/core.h" | 9 | #include "core/core.h" |
| 10 | #include "core/hid/hid_core.h" | ||
| 11 | #include "core/perf_stats.h" | 10 | #include "core/perf_stats.h" |
| 11 | #include "hid_core/hid_core.h" | ||
| 12 | #include "input_common/drivers/keyboard.h" | 12 | #include "input_common/drivers/keyboard.h" |
| 13 | #include "input_common/drivers/mouse.h" | 13 | #include "input_common/drivers/mouse.h" |
| 14 | #include "input_common/drivers/touch_screen.h" | 14 | #include "input_common/drivers/touch_screen.h" |