diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/am/applets/controller.cpp | 2 | ||||
| -rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/service/hid/controllers/npad.h | 12 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/core/hle/service/am/applets/controller.cpp b/src/core/hle/service/am/applets/controller.cpp index 43b79412e..3ca63f020 100644 --- a/src/core/hle/service/am/applets/controller.cpp +++ b/src/core/hle/service/am/applets/controller.cpp | |||
| @@ -25,7 +25,7 @@ namespace Service::AM::Applets { | |||
| 25 | static Core::Frontend::ControllerParameters ConvertToFrontendParameters( | 25 | static Core::Frontend::ControllerParameters ConvertToFrontendParameters( |
| 26 | ControllerSupportArgPrivate private_arg, ControllerSupportArgHeader header, bool enable_text, | 26 | ControllerSupportArgPrivate private_arg, ControllerSupportArgHeader header, bool enable_text, |
| 27 | std::vector<IdentificationColor> identification_colors, std::vector<ExplainText> text) { | 27 | std::vector<IdentificationColor> identification_colors, std::vector<ExplainText> text) { |
| 28 | HID::Controller_NPad::NPadType npad_style_set; | 28 | HID::Controller_NPad::NpadStyleSet npad_style_set; |
| 29 | npad_style_set.raw = private_arg.style_set; | 29 | npad_style_set.raw = private_arg.style_set; |
| 30 | 30 | ||
| 31 | return { | 31 | return { |
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index 15d5fa6e8..8181bddbc 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp | |||
| @@ -619,11 +619,11 @@ void Controller_NPad::OnMotionUpdate(const Core::Timing::CoreTiming& core_timing | |||
| 619 | shared_memory_entries.size() * sizeof(NPadEntry)); | 619 | shared_memory_entries.size() * sizeof(NPadEntry)); |
| 620 | } | 620 | } |
| 621 | 621 | ||
| 622 | void Controller_NPad::SetSupportedStyleSet(NPadType style_set) { | 622 | void Controller_NPad::SetSupportedStyleSet(NpadStyleSet style_set) { |
| 623 | style.raw = style_set.raw; | 623 | style.raw = style_set.raw; |
| 624 | } | 624 | } |
| 625 | 625 | ||
| 626 | Controller_NPad::NPadType Controller_NPad::GetSupportedStyleSet() const { | 626 | Controller_NPad::NpadStyleSet Controller_NPad::GetSupportedStyleSet() const { |
| 627 | return style; | 627 | return style; |
| 628 | } | 628 | } |
| 629 | 629 | ||
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h index 8dabae6e3..fed8425b1 100644 --- a/src/core/hle/service/hid/controllers/npad.h +++ b/src/core/hle/service/hid/controllers/npad.h | |||
| @@ -94,7 +94,7 @@ public: | |||
| 94 | }; | 94 | }; |
| 95 | static_assert(sizeof(DeviceHandle) == 4, "DeviceHandle is an invalid size"); | 95 | static_assert(sizeof(DeviceHandle) == 4, "DeviceHandle is an invalid size"); |
| 96 | 96 | ||
| 97 | struct NPadType { | 97 | struct NpadStyleSet { |
| 98 | union { | 98 | union { |
| 99 | u32_le raw{}; | 99 | u32_le raw{}; |
| 100 | 100 | ||
| @@ -107,7 +107,7 @@ public: | |||
| 107 | BitField<6, 1, u32> pokeball; // TODO(ogniK): Confirm when possible | 107 | BitField<6, 1, u32> pokeball; // TODO(ogniK): Confirm when possible |
| 108 | }; | 108 | }; |
| 109 | }; | 109 | }; |
| 110 | static_assert(sizeof(NPadType) == 4, "NPadType is an invalid size"); | 110 | static_assert(sizeof(NpadStyleSet) == 4, "NpadStyleSet is an invalid size"); |
| 111 | 111 | ||
| 112 | struct Vibration { | 112 | struct Vibration { |
| 113 | f32 amp_low; | 113 | f32 amp_low; |
| @@ -133,8 +133,8 @@ public: | |||
| 133 | }; | 133 | }; |
| 134 | }; | 134 | }; |
| 135 | 135 | ||
| 136 | void SetSupportedStyleSet(NPadType style_set); | 136 | void SetSupportedStyleSet(NpadStyleSet style_set); |
| 137 | NPadType GetSupportedStyleSet() const; | 137 | NpadStyleSet GetSupportedStyleSet() const; |
| 138 | 138 | ||
| 139 | void SetSupportedNPadIdTypes(u8* data, std::size_t length); | 139 | void SetSupportedNPadIdTypes(u8* data, std::size_t length); |
| 140 | void GetSupportedNpadIdTypes(u32* data, std::size_t max_length); | 140 | void GetSupportedNpadIdTypes(u32* data, std::size_t max_length); |
| @@ -347,7 +347,7 @@ private: | |||
| 347 | }; | 347 | }; |
| 348 | 348 | ||
| 349 | struct NPadEntry { | 349 | struct NPadEntry { |
| 350 | NPadType joy_styles; | 350 | NpadStyleSet joy_styles; |
| 351 | NPadAssignments pad_assignment; | 351 | NPadAssignments pad_assignment; |
| 352 | 352 | ||
| 353 | ColorReadError single_color_error; | 353 | ColorReadError single_color_error; |
| @@ -391,7 +391,7 @@ private: | |||
| 391 | 391 | ||
| 392 | u32 press_state{}; | 392 | u32 press_state{}; |
| 393 | 393 | ||
| 394 | NPadType style{}; | 394 | NpadStyleSet style{}; |
| 395 | std::array<NPadEntry, 10> shared_memory_entries{}; | 395 | std::array<NPadEntry, 10> shared_memory_entries{}; |
| 396 | using ButtonArray = std::array< | 396 | using ButtonArray = std::array< |
| 397 | std::array<std::unique_ptr<Input::ButtonDevice>, Settings::NativeButton::NUM_BUTTONS_HID>, | 397 | std::array<std::unique_ptr<Input::ButtonDevice>, Settings::NativeButton::NUM_BUTTONS_HID>, |