summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2020-03-23 19:18:08 +0100
committerGitHub <noreply@github.com>2020-03-23 19:18:08 +0100
commita6d1fe59a3ec56e899e1c587f0fb073922685d49 (patch)
treea3069ad3a802c3666d0e0d4653ef6cf22f98a95f /Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
parent6fab09951bdd68cd24769a3347cd460d656baf95 (diff)
parent997cfa49fcee245d55c87aa8a61d70ceccab6b52 (diff)
Merge pull request #8693 from howard0su/warning_xinpu
InputCommon: cleanup warnings of -Wclass-memaccess
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
index 540a2ec9a8..d049f22c8c 100644
--- a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp
@@ -131,8 +131,6 @@ void KeyboardMouse::SelectEventsForDevice(Window window, XIEventMask* mask, int
KeyboardMouse::KeyboardMouse(Window window, int opcode, int pointer, int keyboard)
: m_window(window), xi_opcode(opcode), pointer_deviceid(pointer), keyboard_deviceid(keyboard)
{
- memset(&m_state, 0, sizeof(m_state));
-
// The cool thing about each KeyboardMouse object having its own Display
// is that each one gets its own separate copy of the X11 event stream,
// which it can individually filter to get just the events it's interested