Cheats: Implement D4/D5/D6 code types

This commit is contained in:
Connor McLaughlin
2020-12-06 15:47:00 +10:00
parent fd6462263f
commit ea9829946d
10 changed files with 103 additions and 3 deletions

View File

@ -127,6 +127,12 @@ void AnalogController::SetButtonState(s32 button_code, bool pressed)
SetButtonState(static_cast<Button>(button_code), pressed);
}
u32 AnalogController::GetButtonStateBits() const
{
// flip bits, native data is active low
return m_button_state ^ 0xFFFF;
}
u32 AnalogController::GetVibrationMotorCount() const
{
return NUM_MOTORS;