diff options
Diffstat (limited to 'src/core/hid/emulated_controller.h')
| -rw-r--r-- | src/core/hid/emulated_controller.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index aed331a1a..d044cc36b 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h | |||
| @@ -35,6 +35,8 @@ using ControllerMotionDevices = | |||
| 35 | std::array<std::unique_ptr<Common::Input::InputDevice>, Settings::NativeMotion::NumMotions>; | 35 | std::array<std::unique_ptr<Common::Input::InputDevice>, Settings::NativeMotion::NumMotions>; |
| 36 | using TriggerDevices = | 36 | using TriggerDevices = |
| 37 | std::array<std::unique_ptr<Common::Input::InputDevice>, Settings::NativeTrigger::NumTriggers>; | 37 | std::array<std::unique_ptr<Common::Input::InputDevice>, Settings::NativeTrigger::NumTriggers>; |
| 38 | using ColorDevices = | ||
| 39 | std::array<std::unique_ptr<Common::Input::InputDevice>, max_emulated_controllers>; | ||
| 38 | using BatteryDevices = | 40 | using BatteryDevices = |
| 39 | std::array<std::unique_ptr<Common::Input::InputDevice>, max_emulated_controllers>; | 41 | std::array<std::unique_ptr<Common::Input::InputDevice>, max_emulated_controllers>; |
| 40 | using CameraDevices = std::unique_ptr<Common::Input::InputDevice>; | 42 | using CameraDevices = std::unique_ptr<Common::Input::InputDevice>; |
| @@ -46,6 +48,7 @@ using ButtonParams = std::array<Common::ParamPackage, Settings::NativeButton::Nu | |||
| 46 | using StickParams = std::array<Common::ParamPackage, Settings::NativeAnalog::NumAnalogs>; | 48 | using StickParams = std::array<Common::ParamPackage, Settings::NativeAnalog::NumAnalogs>; |
| 47 | using ControllerMotionParams = std::array<Common::ParamPackage, Settings::NativeMotion::NumMotions>; | 49 | using ControllerMotionParams = std::array<Common::ParamPackage, Settings::NativeMotion::NumMotions>; |
| 48 | using TriggerParams = std::array<Common::ParamPackage, Settings::NativeTrigger::NumTriggers>; | 50 | using TriggerParams = std::array<Common::ParamPackage, Settings::NativeTrigger::NumTriggers>; |
| 51 | using ColorParams = std::array<Common::ParamPackage, max_emulated_controllers>; | ||
| 49 | using BatteryParams = std::array<Common::ParamPackage, max_emulated_controllers>; | 52 | using BatteryParams = std::array<Common::ParamPackage, max_emulated_controllers>; |
| 50 | using CameraParams = Common::ParamPackage; | 53 | using CameraParams = Common::ParamPackage; |
| 51 | using RingAnalogParams = Common::ParamPackage; | 54 | using RingAnalogParams = Common::ParamPackage; |
| @@ -458,6 +461,13 @@ private: | |||
| 458 | void SetMotion(const Common::Input::CallbackStatus& callback, std::size_t index); | 461 | void SetMotion(const Common::Input::CallbackStatus& callback, std::size_t index); |
| 459 | 462 | ||
| 460 | /** | 463 | /** |
| 464 | * Updates the color status of the controller | ||
| 465 | * @param callback A CallbackStatus containing the color status | ||
| 466 | * @param index color ID of the to be updated | ||
| 467 | */ | ||
| 468 | void SetColors(const Common::Input::CallbackStatus& callback, std::size_t index); | ||
| 469 | |||
| 470 | /** | ||
| 461 | * Updates the battery status of the controller | 471 | * Updates the battery status of the controller |
| 462 | * @param callback A CallbackStatus containing the battery status | 472 | * @param callback A CallbackStatus containing the battery status |
| 463 | * @param index battery ID of the to be updated | 473 | * @param index battery ID of the to be updated |
| @@ -515,6 +525,7 @@ private: | |||
| 515 | ControllerMotionParams motion_params; | 525 | ControllerMotionParams motion_params; |
| 516 | TriggerParams trigger_params; | 526 | TriggerParams trigger_params; |
| 517 | BatteryParams battery_params; | 527 | BatteryParams battery_params; |
| 528 | ColorParams color_params; | ||
| 518 | CameraParams camera_params; | 529 | CameraParams camera_params; |
| 519 | RingAnalogParams ring_params; | 530 | RingAnalogParams ring_params; |
| 520 | NfcParams nfc_params; | 531 | NfcParams nfc_params; |
| @@ -525,6 +536,7 @@ private: | |||
| 525 | ControllerMotionDevices motion_devices; | 536 | ControllerMotionDevices motion_devices; |
| 526 | TriggerDevices trigger_devices; | 537 | TriggerDevices trigger_devices; |
| 527 | BatteryDevices battery_devices; | 538 | BatteryDevices battery_devices; |
| 539 | ColorDevices color_devices; | ||
| 528 | CameraDevices camera_devices; | 540 | CameraDevices camera_devices; |
| 529 | RingAnalogDevice ring_analog_device; | 541 | RingAnalogDevice ring_analog_device; |
| 530 | NfcDevices nfc_devices; | 542 | NfcDevices nfc_devices; |