Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

motion_input: Mark constructor as explicit

Lioncasheccf766a39d1
diff --git a/src/input_common/motion_input.h b/src/input_common/motion_input.h
index ce7ab7f9b3..efe74cf19a 100644
--- a/src/input_common/motion_input.h
+++ b/src/input_common/motion_input.h
@@ -13,7 +13,7 @@ namespace InputCommon {
class MotionInput {
public:
- MotionInput(f32 new_kp, f32 new_ki, f32 new_kd);
+ explicit MotionInput(f32 new_kp, f32 new_ki, f32 new_kd);
MotionInput(const MotionInput&) = default;
MotionInput& operator=(const MotionInput&) = default;