diff options
author | bunnei <bunneidev@gmail.com> | 2022-12-18 02:16:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-18 02:16:13 +0100 |
commit | 48108a8c9b28e08f86aab5c2ad41414e455f4706 (patch) | |
tree | 2dc3ff390a17ebdee32958eac619632cef424fe4 /src/core/hid/emulated_controller.h | |
parent | Merge pull request #7450 from FernandoS27/ndc-vulkan (diff) | |
parent | input_common: Add virtual gamepad (diff) | |
download | yuzu-48108a8c9b28e08f86aab5c2ad41414e455f4706.tar yuzu-48108a8c9b28e08f86aab5c2ad41414e455f4706.tar.gz yuzu-48108a8c9b28e08f86aab5c2ad41414e455f4706.tar.bz2 yuzu-48108a8c9b28e08f86aab5c2ad41414e455f4706.tar.lz yuzu-48108a8c9b28e08f86aab5c2ad41414e455f4706.tar.xz yuzu-48108a8c9b28e08f86aab5c2ad41414e455f4706.tar.zst yuzu-48108a8c9b28e08f86aab5c2ad41414e455f4706.zip |
Diffstat (limited to 'src/core/hid/emulated_controller.h')
-rw-r--r-- | src/core/hid/emulated_controller.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index fa7a34278..a398543a6 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h @@ -385,6 +385,9 @@ private: /// Set the params for TAS devices void LoadTASParams(); + /// Set the params for virtual pad devices + void LoadVirtualGamepadParams(); + /** * @param use_temporary_value If true tmp_npad_type will be used * @return true if the controller style is fullkey @@ -500,6 +503,12 @@ private: ButtonDevices tas_button_devices; StickDevices tas_stick_devices; + // Virtual gamepad related variables + ButtonParams virtual_button_params; + StickParams virtual_stick_params; + ButtonDevices virtual_button_devices; + StickDevices virtual_stick_devices; + mutable std::mutex mutex; mutable std::mutex callback_mutex; std::unordered_map<int, ControllerUpdateCallback> callback_list; |