diff options
| author | german77 <juangerman-13@hotmail.com> | 2022-12-16 16:16:54 -0600 |
|---|---|---|
| committer | Narr the Reg <juangerman-13@hotmail.com> | 2022-12-16 18:26:11 -0600 |
| commit | 243404bf34b1470369e1d0f5f2dd18ac02435273 (patch) | |
| tree | 90a6f4fa1da5620b07ce3c2183cbc69edd029727 /src/core/hid/emulated_controller.h | |
| parent | bbb202ceedf8c4054f6a602ad572ba8df33e315d (diff) | |
input_common: Add virtual gamepad
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; |
