diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-14 12:31:37 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-14 12:34:33 +0200 |
commit | db8ef6165c746b233cd9a61101ed32c4c14a426c (patch) | |
tree | 9880482ba20f32ab56360e3c0a2d02a586c460cc /dinput/win32-joystick.cpp | |
parent | 2d7e8f1467a37b66a87c949ad266dc9b41c9a1b1 (diff) |
dinput: fix dinput freeze
It was easiest to reproduce when a protocol failed to load. As usual, win32
debugging without MSVC++ is nearly useless.
Diffstat (limited to 'dinput/win32-joystick.cpp')
-rw-r--r-- | dinput/win32-joystick.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dinput/win32-joystick.cpp b/dinput/win32-joystick.cpp index 9502bcd2..f0673309 100644 --- a/dinput/win32-joystick.cpp +++ b/dinput/win32-joystick.cpp @@ -346,13 +346,13 @@ BOOL CALLBACK win32_joy_ctx::enum_state::EnumObjectsCallback(const DIDEVICEOBJEC win32_joy_ctx::joy::joy(LPDIRECTINPUTDEVICE8 handle, const QString &guid, const QString &name) : joy_handle(handle), guid(guid), name(name) { - qDebug() << "make joy" << guid << name << joy_handle; + //qDebug() << "make joy" << guid << name << joy_handle; std::memset(pressed, 0, sizeof(pressed)); } win32_joy_ctx::joy::~joy() { - qDebug() << "nix joy" << guid; + //qDebug() << "nix joy" << guid; release(); } |