mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
WiimoteEmu: Code cleanups.
This commit is contained in:
@ -51,6 +51,7 @@
|
||||
#include "Core/HW/WiimoteEmu/Encryption.h"
|
||||
#include "Core/HW/WiimoteEmu/Extension/Classic.h"
|
||||
#include "Core/HW/WiimoteEmu/Extension/Nunchuk.h"
|
||||
#include "Core/HW/WiimoteEmu/ExtensionPort.h"
|
||||
|
||||
#include "Core/IOS/USB/Bluetooth/BTEmu.h"
|
||||
#include "Core/IOS/USB/Bluetooth/WiimoteDevice.h"
|
||||
@ -706,7 +707,7 @@ static void SetWiiInputDisplayString(int remoteID, const DataReportBuilder& rpt,
|
||||
}
|
||||
|
||||
// Nunchuk
|
||||
if (rpt.HasExt() && ext == 1)
|
||||
if (rpt.HasExt() && ext == ExtensionNumber::NUNCHUK)
|
||||
{
|
||||
const u8* const extData = rpt.GetExtDataPtr();
|
||||
|
||||
@ -728,7 +729,7 @@ static void SetWiiInputDisplayString(int remoteID, const DataReportBuilder& rpt,
|
||||
}
|
||||
|
||||
// Classic controller
|
||||
if (rpt.HasExt() && ext == 2)
|
||||
if (rpt.HasExt() && ext == ExtensionNumber::CLASSIC)
|
||||
{
|
||||
const u8* const extData = rpt.GetExtDataPtr();
|
||||
|
||||
|
Reference in New Issue
Block a user