summaryrefslogtreecommitdiff
path: root/src/core/hid/emulated_controller.h
diff options
context:
space:
mode:
authorGravatar german772021-10-27 00:20:28 -0500
committerGravatar Narr the Reg2021-11-24 20:30:26 -0600
commitc085e54316c5520ed7d58a92a7faa9e896bb6c71 (patch)
tree05a5798ddc25ce2afa423cd70bec979705b63143 /src/core/hid/emulated_controller.h
parentinput_common: Fix UDP uuid (diff)
downloadyuzu-c085e54316c5520ed7d58a92a7faa9e896bb6c71.tar.gz
yuzu-c085e54316c5520ed7d58a92a7faa9e896bb6c71.tar.xz
yuzu-c085e54316c5520ed7d58a92a7faa9e896bb6c71.zip
core/hid: Add TAS input
Diffstat (limited to 'src/core/hid/emulated_controller.h')
-rw-r--r--src/core/hid/emulated_controller.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h
index eb705a241..eec51e34a 100644
--- a/src/core/hid/emulated_controller.h
+++ b/src/core/hid/emulated_controller.h
@@ -299,6 +299,9 @@ private:
299 /// creates input devices from params 299 /// creates input devices from params
300 void LoadDevices(); 300 void LoadDevices();
301 301
302 /// Set the params for TAS devices
303 void LoadTASParams();
304
302 /** 305 /**
303 * Updates the button status of the controller 306 * Updates the button status of the controller
304 * @param callback: A CallbackStatus containing the button status 307 * @param callback: A CallbackStatus containing the button status
@@ -363,6 +366,12 @@ private:
363 BatteryDevices battery_devices; 366 BatteryDevices battery_devices;
364 OutputDevices output_devices; 367 OutputDevices output_devices;
365 368
369 // TAS related variables
370 ButtonParams tas_button_params;
371 StickParams tas_stick_params;
372 ButtonDevices tas_button_devices;
373 StickDevices tas_stick_devices;
374
366 mutable std::mutex mutex; 375 mutable std::mutex mutex;
367 std::unordered_map<int, ControllerUpdateCallback> callback_list; 376 std::unordered_map<int, ControllerUpdateCallback> callback_list;
368 int last_callback_key = 0; 377 int last_callback_key = 0;