Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

core: hid: Mark constructors as explicit

Morphbc2f114e7523
diff --git a/src/core/hid/emulated_console.h b/src/core/hid/emulated_console.h
index 67981b844b..bb3d7ab907 100644
--- a/src/core/hid/emulated_console.h
+++ b/src/core/hid/emulated_console.h
@@ -80,7 +80,7 @@ public:
/**
* Contains all input data within the emulated switch console tablet such as touch and motion
*/
- EmulatedConsole();
+ explicit EmulatedConsole();
~EmulatedConsole();
YUZU_NON_COPYABLE(EmulatedConsole);
diff --git a/src/core/hid/emulated_devices.h b/src/core/hid/emulated_devices.h
index d4f4576511..c723276812 100644
--- a/src/core/hid/emulated_devices.h
+++ b/src/core/hid/emulated_devices.h
@@ -77,7 +77,7 @@ public:
* Contains all input data related to external devices that aren't necesarily a controller
* This includes devices such as the keyboard or mouse
*/
- EmulatedDevices();
+ explicit EmulatedDevices();
~EmulatedDevices();
YUZU_NON_COPYABLE(EmulatedDevices);