summaryrefslogtreecommitdiff
path: root/Source/Core/Common/FileUtil.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2016-08-04 15:38:43 +0200
committerLéo Lam <leo@innovatetechnologi.es>2016-10-03 11:41:23 +0200
commitd9a9e3499483e53a2aa3bf6f73b7713f3cbdff46 (patch)
tree8d83107b016e99ee868d22e92423cec852388924 /Source/Core/Common/FileUtil.cpp
parent53d553d2b0b098cd7369fe3ad6e1e83bac20ef33 (diff)
WiimoteReal: Disconnect the Wiimote if IOWrite fails
This is intended to make reconnecting Wiimotes easier with a DolphinBar. Unfortunately, this change isn't enough as it doesn't always catch disconnections for Wiimotes connected with a DolphinBar. But it's better than nothing and eventually a disconnection will be detected when something tries to write to the Wiimote, instead of never. There is no other solution as the DolphinBar always exposes 4 HIDs even when the associated Wiimotes are not connected. We could try to detect this using the fake input reports sent by the DolphinBar, but this only works for the first HID (probably because of a bug in the firmware?), so this method is not an option.
Diffstat (limited to 'Source/Core/Common/FileUtil.cpp')
0 files changed, 0 insertions, 0 deletions