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

@ -100,6 +100,11 @@ void AnalogJoystick::SetButtonState(s32 button_code, bool pressed)
SetButtonState(static_cast<Button>(button_code), pressed);
}
u32 AnalogJoystick::GetButtonStateBits() const
{
return m_button_state ^ 0xFFFF;
}
void AnalogJoystick::ResetTransferState()
{
m_transfer_state = TransferState::Idle;