diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2016-07-24 17:20:40 +0200 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2016-10-03 11:41:23 +0200 |
| commit | 843b030eda4d42672e8aea2b5607f4ba3048bd36 (patch) | |
| tree | c70a1a4f7d3f4bdbaf13cd4c78a6a9d498fcc8e6 /Source/Core/Common/FileUtil.cpp | |
| parent | 84467d2ff1c8c83b27b695685822eb71128fa788 (diff) | |
WiimoteReal: Add a hidapi IO implementation
Based on ca0c2efe7ab19c85449d52dd1bf4beec8603bbfe. Credits go to flacs.
However, unlike the original commit, hidapi does not completely replace
the current implementations, so we can still connect Wiimotes with 1+2
(without pairing).
Also, it is only used on Linux and OS X for now. This removes the
advantage of having only one implementation but there is no other
choice: using hidapi on Windows is currently impossible because
hid_write() is implemented in a way that won't work with Wiimotes.
Additionally:
* We now check for the device name in addition to the PID/VID so we can
support the Balance Board and maybe third-party Wiimotes too. This
doesn't achieve anything with the DolphinBar but it does with hidraw.
* Added a check to not connect to the same device more than once.
Diffstat (limited to 'Source/Core/Common/FileUtil.cpp')
0 files changed, 0 insertions, 0 deletions
