mirror of
https://github.com/cathery/sys-con.git
synced 2024-11-16 14:09:51 +00:00
Create button combos for CAPTURE and HOME buttons
This commit is contained in:
parent
7cde4416e8
commit
e4b79a6875
@ -157,6 +157,20 @@ void SwitchHDLHandler::FillHdlState(const NormalizedButtonData &data)
|
||||
|
||||
m_hdlState.buttons |= (data.buttons[16] ? HiddbgNpadButton_Capture : 0);
|
||||
m_hdlState.buttons |= (data.buttons[17] ? HiddbgNpadButton_Home : 0);
|
||||
|
||||
if (data.buttons[10] && data.buttons[12])
|
||||
{
|
||||
m_hdlState.state.buttons ^= HidNpadButton_Minus;
|
||||
m_hdlState.state.buttons ^= HidNpadButton_Up;
|
||||
m_hdlState.state.buttons |= HiddbgNpadButton_Capture;
|
||||
}
|
||||
|
||||
if (data.buttons[10] && data.buttons[14])
|
||||
{
|
||||
m_hdlState.state.buttons ^= HidNpadButton_Minus;
|
||||
m_hdlState.state.buttons ^= HidNpadButton_Down;
|
||||
m_hdlState.state.buttons |= HiddbgNpadButton_Home;
|
||||
}
|
||||
}
|
||||
|
||||
void SwitchHDLHandler::UpdateInput()
|
||||
|
Loading…
Reference in New Issue
Block a user