diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-10 02:26:40 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-10 02:27:08 +0100 |
commit | 301b8dbe9677defd2fa5dce16c552527a7c62dd1 (patch) | |
tree | fb5c445d57b510a02f4bc6bd73b7b08652022be9 | |
parent | 94e6e5be8281cb759a06a3b18f4f25a1c87142e2 (diff) |
dinput: fix debug logic
-rw-r--r-- | dinput/dinput.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dinput/dinput.cpp b/dinput/dinput.cpp index 575922d9..22781a32 100644 --- a/dinput/dinput.cpp +++ b/dinput/dinput.cpp @@ -75,6 +75,8 @@ bool di_t::poll_device(LPDIRECTINPUTDEVICE8 dev) switch (hr = dev->Acquire()) { + default: + break; case DI_OK: case S_FALSE: switch (hr = dev->Poll()) @@ -83,9 +85,12 @@ bool di_t::poll_device(LPDIRECTINPUTDEVICE8 dev) case DI_NOEFFECT: return true; default: - eval_once(qDebug() << "dinput: device poll failed:" << (void*)hr); + break; } + break; } + eval_once(qDebug() << "dinput: device poll failed:" << (void*)hr); + return false; } |