summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-11 14:35:26 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-11 14:36:58 +0100
commit9f8cbd79fc1040e855fe9325447983bd8d13f1b9 (patch)
tree5926451d09b6341db821cad330ff24fd3a9f0b5a /opentrack
parent605d267622b8d2e69bc761f4f49442566164d843 (diff)
joy: memset won't hurt
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)))
{