summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-10 02:26:40 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-10 02:27:08 +0100
commit301b8dbe9677defd2fa5dce16c552527a7c62dd1 (patch)
treefb5c445d57b510a02f4bc6bd73b7b08652022be9
parent94e6e5be8281cb759a06a3b18f4f25a1c87142e2 (diff)
dinput: fix debug logic
-rw-r--r--dinput/dinput.cpp7
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;
}