core/hid: Add TAS input

This commit is contained in:
german77 2021-10-27 00:20:28 -05:00 committed by Narr the Reg
parent 1d71d4b874
commit c085e54316
6 changed files with 82 additions and 13 deletions

View file

@ -299,6 +299,9 @@ private:
/// creates input devices from params
void LoadDevices();
/// Set the params for TAS devices
void LoadTASParams();
/**
* Updates the button status of the controller
* @param callback: A CallbackStatus containing the button status
@ -363,6 +366,12 @@ private:
BatteryDevices battery_devices;
OutputDevices output_devices;
// TAS related variables
ButtonParams tas_button_params;
StickParams tas_stick_params;
ButtonDevices tas_button_devices;
StickDevices tas_stick_devices;
mutable std::mutex mutex;
std::unordered_map<int, ControllerUpdateCallback> callback_list;
int last_callback_key = 0;