mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-16 04:36:59 +00:00
Linux: Allow connecting Wiimotes via L2CAP (#1353)
This commit is contained in:
parent
934cb54605
commit
dd0af0a56f
14 changed files with 532 additions and 221 deletions
|
|
@ -47,8 +47,11 @@ std::vector<WiimoteDevicePtr> HidapiWiimote::get_devices() {
|
|||
return wiimote_devices;
|
||||
}
|
||||
|
||||
bool HidapiWiimote::operator==(WiimoteDevice& o) const {
|
||||
return static_cast<HidapiWiimote const&>(o).m_path == m_path;
|
||||
bool HidapiWiimote::operator==(const WiimoteDevice& rhs) const {
|
||||
auto other = dynamic_cast<const HidapiWiimote*>(&rhs);
|
||||
if (!other)
|
||||
return false;
|
||||
return m_path == other->m_path;
|
||||
}
|
||||
|
||||
HidapiWiimote::~HidapiWiimote() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue