summaryrefslogtreecommitdiff
path: root/src/input_common/helpers
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/input_common/helpers/joycon_driver.cpp4
-rw-r--r--src/input_common/helpers/joycon_driver.h4
-rw-r--r--src/input_common/helpers/joycon_protocol/common_protocol.h4
-rw-r--r--src/input_common/helpers/udp_protocol.cpp2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/input_common/helpers/joycon_driver.cpp b/src/input_common/helpers/joycon_driver.cpp
index 78cc5893c..83429a336 100644
--- a/src/input_common/helpers/joycon_driver.cpp
+++ b/src/input_common/helpers/joycon_driver.cpp
@@ -164,8 +164,8 @@ void JoyconDriver::InputThread(std::stop_token stop_token) {
164void JoyconDriver::OnNewData(std::span<u8> buffer) { 164void JoyconDriver::OnNewData(std::span<u8> buffer) {
165 const auto report_mode = static_cast<ReportMode>(buffer[0]); 165 const auto report_mode = static_cast<ReportMode>(buffer[0]);
166 166
167 // Packages can be a litte bit inconsistent. Average the delta time to provide a smoother motion 167 // Packages can be a little bit inconsistent. Average the delta time to provide a smoother
168 // experience 168 // motion experience
169 switch (report_mode) { 169 switch (report_mode) {
170 case ReportMode::STANDARD_FULL_60HZ: 170 case ReportMode::STANDARD_FULL_60HZ:
171 case ReportMode::NFC_IR_MODE_60HZ: 171 case ReportMode::NFC_IR_MODE_60HZ:
diff --git a/src/input_common/helpers/joycon_driver.h b/src/input_common/helpers/joycon_driver.h
index b52a13ecf..72a9e71dc 100644
--- a/src/input_common/helpers/joycon_driver.h
+++ b/src/input_common/helpers/joycon_driver.h
@@ -73,7 +73,7 @@ private:
73 /// Main thread, actively request new data from the handle 73 /// Main thread, actively request new data from the handle
74 void InputThread(std::stop_token stop_token); 74 void InputThread(std::stop_token stop_token);
75 75
76 /// Called everytime a valid package arrives 76 /// Called every time a valid package arrives
77 void OnNewData(std::span<u8> buffer); 77 void OnNewData(std::span<u8> buffer);
78 78
79 /// Updates device configuration to enable or disable features 79 /// Updates device configuration to enable or disable features
@@ -110,7 +110,7 @@ private:
110 bool amiibo_detected{}; 110 bool amiibo_detected{};
111 bool is_ring_disabled_by_irs{}; 111 bool is_ring_disabled_by_irs{};
112 112
113 // Harware configuration 113 // Hardware configuration
114 u8 leds{}; 114 u8 leds{};
115 ReportMode mode{}; 115 ReportMode mode{};
116 bool passive_enabled{}; // Low power mode, Ideal for multiple controllers at the same time 116 bool passive_enabled{}; // Low power mode, Ideal for multiple controllers at the same time
diff --git a/src/input_common/helpers/joycon_protocol/common_protocol.h b/src/input_common/helpers/joycon_protocol/common_protocol.h
index f44f73ba4..62cae739a 100644
--- a/src/input_common/helpers/joycon_protocol/common_protocol.h
+++ b/src/input_common/helpers/joycon_protocol/common_protocol.h
@@ -68,7 +68,7 @@ public:
68 } 68 }
69 69
70 /** 70 /**
71 * Waits for incoming data of the joycon device that matchs the subcommand 71 * Waits for incoming data of the joycon device that matches the subcommand
72 * @param sub_command type of data to be returned 72 * @param sub_command type of data to be returned
73 * @returns a buffer containing the response 73 * @returns a buffer containing the response
74 */ 74 */
@@ -137,7 +137,7 @@ public:
137 DriverResult EnableMCU(bool enable); 137 DriverResult EnableMCU(bool enable);
138 138
139 /** 139 /**
140 * Configures the MCU to the correspoinding mode 140 * Configures the MCU to the corresponding mode
141 * @param MCUConfig configuration 141 * @param MCUConfig configuration
142 */ 142 */
143 DriverResult ConfigureMCU(const MCUConfig& config); 143 DriverResult ConfigureMCU(const MCUConfig& config);
diff --git a/src/input_common/helpers/udp_protocol.cpp b/src/input_common/helpers/udp_protocol.cpp
index 994380d21..e54a8fce1 100644
--- a/src/input_common/helpers/udp_protocol.cpp
+++ b/src/input_common/helpers/udp_protocol.cpp
@@ -25,7 +25,7 @@ namespace Response {
25/** 25/**
26 * Returns Type if the packet is valid, else none 26 * Returns Type if the packet is valid, else none
27 * 27 *
28 * Note: Modifies the buffer to zero out the crc (since thats the easiest way to check without 28 * Note: Modifies the buffer to zero out the crc (since that's the easiest way to check without
29 * copying the buffer) 29 * copying the buffer)
30 */ 30 */
31std::optional<Type> Validate(u8* data, std::size_t size) { 31std::optional<Type> Validate(u8* data, std::size_t size) {