diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-11 14:35:26 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-11 14:36:58 +0100 |
commit | 9f8cbd79fc1040e855fe9325447983bd8d13f1b9 (patch) | |
tree | 5926451d09b6341db821cad330ff24fd3a9f0b5a /opentrack/win32-joystick-shortcuts.hpp | |
parent | 605d267622b8d2e69bc761f4f49442566164d843 (diff) |
joy: memset won't hurt
Diffstat (limited to 'opentrack/win32-joystick-shortcuts.hpp')
-rw-r--r-- | opentrack/win32-joystick-shortcuts.hpp | 1 |
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))) { |