Cheats: Implement D4/D5/D6 code types
This commit is contained in:
parent
fd6462263f
commit
ea9829946d
10 changed files with 103 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue