OSD: Add controller input display overlay

This commit is contained in:
Connor McLaughlin
2021-04-04 03:51:08 +10:00
parent a9a571cd6a
commit 251043f11a
25 changed files with 293 additions and 12 deletions

View File

@ -56,7 +56,14 @@ bool NamcoGunCon::DoState(StateWrapper& sw, bool apply_input_state)
return true;
}
void NamcoGunCon::SetAxisState(s32 axis_code, float value) {}
bool NamcoGunCon::GetButtonState(s32 button_code) const
{
if (button_code < 0 || button_code > static_cast<s32>(Button::B))
return false;
const u16 bit = u16(1) << static_cast<u8>(button_code);
return ((m_button_state & bit) == 0);
}
void NamcoGunCon::SetButtonState(Button button, bool pressed)
{