diff --git a/Source/Core/Core/IOS/USB/USB_KBD.h b/Source/Core/Core/IOS/USB/USB_KBD.h index bd53e0ae0e..d0039d4ba7 100644 --- a/Source/Core/Core/IOS/USB/USB_KBD.h +++ b/Source/Core/Core/IOS/USB/USB_KBD.h @@ -7,6 +7,7 @@ #include #include #include +#include #include "Common/CommonTypes.h" #include "Core/IOS/Device.h" @@ -45,6 +46,8 @@ private: MessageData(u32 msg_type, u8 modifiers, PressedKeyData pressed_keys); }; + static_assert(std::is_trivially_copyable_v, + "MessageData must be trivially copyable, as it's copied into emulated memory."); #pragma pack(pop) std::queue m_MessageQueue;