summaryrefslogtreecommitdiff
path: root/src/core/hid
diff options
context:
space:
mode:
authorGravatar Liam2023-03-11 22:10:38 -0500
committerGravatar Liam2023-03-12 11:33:01 -0400
commit600f325d87e42f856da58c42a5280f098ebb6e8c (patch)
tree75c4fe48af55186a4e420e94a1d7e1bfd92e4ec0 /src/core/hid
parentgeneral: use codespell to identify spelling mistakes (diff)
downloadyuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.gz
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.tar.xz
yuzu-600f325d87e42f856da58c42a5280f098ebb6e8c.zip
general: fix spelling mistakes
Diffstat (limited to 'src/core/hid')
-rw-r--r--src/core/hid/emulated_controller.h6
-rw-r--r--src/core/hid/emulated_devices.h4
-rw-r--r--src/core/hid/input_converter.cpp4
-rw-r--r--src/core/hid/motion_input.h2
4 files changed, 8 insertions, 8 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h
index a9da465a2..429655355 100644
--- a/src/core/hid/emulated_controller.h
+++ b/src/core/hid/emulated_controller.h
@@ -132,7 +132,7 @@ struct ControllerStatus {
132 RingAnalogValue ring_analog_value{}; 132 RingAnalogValue ring_analog_value{};
133 NfcValues nfc_values{}; 133 NfcValues nfc_values{};
134 134
135 // Data for HID serices 135 // Data for HID services
136 HomeButtonState home_button_state{}; 136 HomeButtonState home_button_state{};
137 CaptureButtonState capture_button_state{}; 137 CaptureButtonState capture_button_state{};
138 NpadButtonState npad_button_state{}; 138 NpadButtonState npad_button_state{};
@@ -357,7 +357,7 @@ public:
357 357
358 /** 358 /**
359 * Sends a small vibration to the output device 359 * Sends a small vibration to the output device
360 * @return true if SetVibration was successfull 360 * @return true if SetVibration was successful
361 */ 361 */
362 bool IsVibrationEnabled(std::size_t device_index); 362 bool IsVibrationEnabled(std::size_t device_index);
363 363
@@ -373,7 +373,7 @@ public:
373 /** 373 /**
374 * Sets the desired camera format to be polled from a controller 374 * Sets the desired camera format to be polled from a controller
375 * @param camera_format size of each frame 375 * @param camera_format size of each frame
376 * @return true if SetCameraFormat was successfull 376 * @return true if SetCameraFormat was successful
377 */ 377 */
378 bool SetCameraFormat(Core::IrSensor::ImageTransferProcessorFormat camera_format); 378 bool SetCameraFormat(Core::IrSensor::ImageTransferProcessorFormat camera_format);
379 379
diff --git a/src/core/hid/emulated_devices.h b/src/core/hid/emulated_devices.h
index caf2ca659..5eab693e4 100644
--- a/src/core/hid/emulated_devices.h
+++ b/src/core/hid/emulated_devices.h
@@ -53,7 +53,7 @@ struct DeviceStatus {
53 MouseWheelValues mouse_wheel_values{}; 53 MouseWheelValues mouse_wheel_values{};
54 MouseStickValue mouse_stick_value{}; 54 MouseStickValue mouse_stick_value{};
55 55
56 // Data for HID serices 56 // Data for HID services
57 KeyboardKey keyboard_state{}; 57 KeyboardKey keyboard_state{};
58 KeyboardModifier keyboard_moddifier_state{}; 58 KeyboardModifier keyboard_moddifier_state{};
59 MouseButton mouse_button_state{}; 59 MouseButton mouse_button_state{};
@@ -75,7 +75,7 @@ struct InterfaceUpdateCallback {
75class EmulatedDevices { 75class EmulatedDevices {
76public: 76public:
77 /** 77 /**
78 * Contains all input data related to external devices that aren't necesarily a controller 78 * Contains all input data related to external devices that aren't necessarily a controller
79 * This includes devices such as the keyboard or mouse 79 * This includes devices such as the keyboard or mouse
80 */ 80 */
81 explicit EmulatedDevices(); 81 explicit EmulatedDevices();
diff --git a/src/core/hid/input_converter.cpp b/src/core/hid/input_converter.cpp
index 3f7b8c090..7cee39a53 100644
--- a/src/core/hid/input_converter.cpp
+++ b/src/core/hid/input_converter.cpp
@@ -328,7 +328,7 @@ void SanitizeAnalog(Common::Input::AnalogStatus& analog, bool clamp_value) {
328 // Apply center offset 328 // Apply center offset
329 raw_value -= properties.offset; 329 raw_value -= properties.offset;
330 330
331 // Set initial values to be formated 331 // Set initial values to be formatted
332 value = raw_value; 332 value = raw_value;
333 333
334 // Calculate vector size 334 // Calculate vector size
@@ -398,7 +398,7 @@ void SanitizeStick(Common::Input::AnalogStatus& analog_x, Common::Input::AnalogS
398 raw_x = properties_x.inverted ? -raw_x : raw_x; 398 raw_x = properties_x.inverted ? -raw_x : raw_x;
399 raw_y = properties_y.inverted ? -raw_y : raw_y; 399 raw_y = properties_y.inverted ? -raw_y : raw_y;
400 400
401 // Set initial values to be formated 401 // Set initial values to be formatted
402 x = raw_x; 402 x = raw_x;
403 y = raw_y; 403 y = raw_y;
404 404
diff --git a/src/core/hid/motion_input.h b/src/core/hid/motion_input.h
index e2c1bbf95..9f3fc1cf7 100644
--- a/src/core/hid/motion_input.h
+++ b/src/core/hid/motion_input.h
@@ -84,7 +84,7 @@ private:
84 // Gyroscope vector measurement in radians/s. 84 // Gyroscope vector measurement in radians/s.
85 Common::Vec3f gyro; 85 Common::Vec3f gyro;
86 86
87 // Vector to be substracted from gyro measurements 87 // Vector to be subtracted from gyro measurements
88 Common::Vec3f gyro_bias; 88 Common::Vec3f gyro_bias;
89 89
90 // Minimum gyro amplitude to detect if the device is moving 90 // Minimum gyro amplitude to detect if the device is moving