OSD: Add controller input display overlay
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user