summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/win32-joystick-shortcuts.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/opentrack/win32-joystick-shortcuts.hpp b/opentrack/win32-joystick-shortcuts.hpp
index 5a2fc6c8..ee26215e 100644
--- a/opentrack/win32-joystick-shortcuts.hpp
+++ b/opentrack/win32-joystick-shortcuts.hpp
@@ -83,6 +83,7 @@ struct win32_joy_ctx
}
DIJOYSTATE2 js;
+ memset(&js, 0, sizeof(js));
if (FAILED(hr = joy_handle->GetDeviceState(sizeof(js), &js)))
{