summaryrefslogtreecommitdiff
path: root/src/core/hid
diff options
context:
space:
mode:
authorGravatar Morph2022-02-05 12:35:39 -0500
committerGravatar Morph2022-02-05 13:56:21 -0500
commit25db62ce1534cbd8b93b4284869229e4bd7de54d (patch)
treedd74d3fc6ba14a0de5e88778cad5b5c65fcba248 /src/core/hid
parentprofile: Migrate to the new UUID implementation (diff)
downloadyuzu-25db62ce1534cbd8b93b4284869229e4bd7de54d.tar.gz
yuzu-25db62ce1534cbd8b93b4284869229e4bd7de54d.tar.xz
yuzu-25db62ce1534cbd8b93b4284869229e4bd7de54d.zip
general: Rename NewUUID to UUID, and remove the previous UUID impl
This completes the removal of the old UUID implementation.
Diffstat (limited to 'src/core/hid')
-rw-r--r--src/core/hid/emulated_controller.cpp14
-rw-r--r--src/core/hid/emulated_controller.h6
-rw-r--r--src/core/hid/hid_types.h2
3 files changed, 11 insertions, 11 deletions
diff --git a/src/core/hid/emulated_controller.cpp b/src/core/hid/emulated_controller.cpp
index 44e9f22b9..2bee173b3 100644
--- a/src/core/hid/emulated_controller.cpp
+++ b/src/core/hid/emulated_controller.cpp
@@ -204,7 +204,7 @@ void EmulatedController::ReloadInput() {
204 if (!button_devices[index]) { 204 if (!button_devices[index]) {
205 continue; 205 continue;
206 } 206 }
207 const auto uuid = Common::NewUUID{button_params[index].Get("guid", "")}; 207 const auto uuid = Common::UUID{button_params[index].Get("guid", "")};
208 button_devices[index]->SetCallback({ 208 button_devices[index]->SetCallback({
209 .on_change = 209 .on_change =
210 [this, index, uuid](const Common::Input::CallbackStatus& callback) { 210 [this, index, uuid](const Common::Input::CallbackStatus& callback) {
@@ -218,7 +218,7 @@ void EmulatedController::ReloadInput() {
218 if (!stick_devices[index]) { 218 if (!stick_devices[index]) {
219 continue; 219 continue;
220 } 220 }
221 const auto uuid = Common::NewUUID{stick_params[index].Get("guid", "")}; 221 const auto uuid = Common::UUID{stick_params[index].Get("guid", "")};
222 stick_devices[index]->SetCallback({ 222 stick_devices[index]->SetCallback({
223 .on_change = 223 .on_change =
224 [this, index, uuid](const Common::Input::CallbackStatus& callback) { 224 [this, index, uuid](const Common::Input::CallbackStatus& callback) {
@@ -232,7 +232,7 @@ void EmulatedController::ReloadInput() {
232 if (!trigger_devices[index]) { 232 if (!trigger_devices[index]) {
233 continue; 233 continue;
234 } 234 }
235 const auto uuid = Common::NewUUID{trigger_params[index].Get("guid", "")}; 235 const auto uuid = Common::UUID{trigger_params[index].Get("guid", "")};
236 trigger_devices[index]->SetCallback({ 236 trigger_devices[index]->SetCallback({
237 .on_change = 237 .on_change =
238 [this, index, uuid](const Common::Input::CallbackStatus& callback) { 238 [this, index, uuid](const Common::Input::CallbackStatus& callback) {
@@ -269,7 +269,7 @@ void EmulatedController::ReloadInput() {
269 } 269 }
270 270
271 // Use a common UUID for TAS 271 // Use a common UUID for TAS
272 static constexpr Common::NewUUID TAS_UUID = Common::NewUUID{ 272 static constexpr Common::UUID TAS_UUID = Common::UUID{
273 {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7, 0xA5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}; 273 {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7, 0xA5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}};
274 274
275 // Register TAS devices. No need to force update 275 // Register TAS devices. No need to force update
@@ -490,7 +490,7 @@ void EmulatedController::SetMotionParam(std::size_t index, Common::ParamPackage
490} 490}
491 491
492void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback, std::size_t index, 492void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback, std::size_t index,
493 Common::NewUUID uuid) { 493 Common::UUID uuid) {
494 if (index >= controller.button_values.size()) { 494 if (index >= controller.button_values.size()) {
495 return; 495 return;
496 } 496 }
@@ -639,7 +639,7 @@ void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback
639} 639}
640 640
641void EmulatedController::SetStick(const Common::Input::CallbackStatus& callback, std::size_t index, 641void EmulatedController::SetStick(const Common::Input::CallbackStatus& callback, std::size_t index,
642 Common::NewUUID uuid) { 642 Common::UUID uuid) {
643 if (index >= controller.stick_values.size()) { 643 if (index >= controller.stick_values.size()) {
644 return; 644 return;
645 } 645 }
@@ -689,7 +689,7 @@ void EmulatedController::SetStick(const Common::Input::CallbackStatus& callback,
689} 689}
690 690
691void EmulatedController::SetTrigger(const Common::Input::CallbackStatus& callback, 691void EmulatedController::SetTrigger(const Common::Input::CallbackStatus& callback,
692 std::size_t index, Common::NewUUID uuid) { 692 std::size_t index, Common::UUID uuid) {
693 if (index >= controller.trigger_values.size()) { 693 if (index >= controller.trigger_values.size()) {
694 return; 694 return;
695 } 695 }
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h
index ed61e9522..d8642c5b3 100644
--- a/src/core/hid/emulated_controller.h
+++ b/src/core/hid/emulated_controller.h
@@ -354,7 +354,7 @@ private:
354 * @param index Button ID of the to be updated 354 * @param index Button ID of the to be updated
355 */ 355 */
356 void SetButton(const Common::Input::CallbackStatus& callback, std::size_t index, 356 void SetButton(const Common::Input::CallbackStatus& callback, std::size_t index,
357 Common::NewUUID uuid); 357 Common::UUID uuid);
358 358
359 /** 359 /**
360 * Updates the analog stick status of the controller 360 * Updates the analog stick status of the controller
@@ -362,7 +362,7 @@ private:
362 * @param index stick ID of the to be updated 362 * @param index stick ID of the to be updated
363 */ 363 */
364 void SetStick(const Common::Input::CallbackStatus& callback, std::size_t index, 364 void SetStick(const Common::Input::CallbackStatus& callback, std::size_t index,
365 Common::NewUUID uuid); 365 Common::UUID uuid);
366 366
367 /** 367 /**
368 * Updates the trigger status of the controller 368 * Updates the trigger status of the controller
@@ -370,7 +370,7 @@ private:
370 * @param index trigger ID of the to be updated 370 * @param index trigger ID of the to be updated
371 */ 371 */
372 void SetTrigger(const Common::Input::CallbackStatus& callback, std::size_t index, 372 void SetTrigger(const Common::Input::CallbackStatus& callback, std::size_t index,
373 Common::NewUUID uuid); 373 Common::UUID uuid);
374 374
375 /** 375 /**
376 * Updates the motion status of the controller 376 * Updates the motion status of the controller
diff --git a/src/core/hid/hid_types.h b/src/core/hid/hid_types.h
index a4ccdf11c..778b328b9 100644
--- a/src/core/hid/hid_types.h
+++ b/src/core/hid/hid_types.h
@@ -7,8 +7,8 @@
7#include "common/bit_field.h" 7#include "common/bit_field.h"
8#include "common/common_funcs.h" 8#include "common/common_funcs.h"
9#include "common/common_types.h" 9#include "common/common_types.h"
10#include "common/new_uuid.h"
11#include "common/point.h" 10#include "common/point.h"
11#include "common/uuid.h"
12 12
13namespace Core::HID { 13namespace Core::HID {
14 14