summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;
}