mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-06 18:55:41 +00:00
Fix pad handler for digital buttons
This commit is contained in:
parent
4d28d2e75d
commit
5deedb1524
@ -118,6 +118,7 @@ int cellPadGetData(u32 port_no, u32 data_addr)
|
||||
if (button.m_offset == CELL_PAD_BTN_OFFSET_DIGITAL1)
|
||||
{
|
||||
if (button.m_pressed) pad.m_digital_1 |= button.m_outKeyCode;
|
||||
else pad.m_digital_1 &= ~button.m_outKeyCode;
|
||||
|
||||
switch (button.m_outKeyCode)
|
||||
{
|
||||
@ -136,6 +137,8 @@ int cellPadGetData(u32 port_no, u32 data_addr)
|
||||
else if (button.m_offset == CELL_PAD_BTN_OFFSET_DIGITAL2)
|
||||
{
|
||||
if (button.m_pressed) pad.m_digital_2 |= button.m_outKeyCode;
|
||||
else pad.m_digital_2 &= ~button.m_outKeyCode;
|
||||
|
||||
switch (button.m_outKeyCode)
|
||||
{
|
||||
case CELL_PAD_CTRL_SQUARE: pad.m_press_square = button.m_value; break;
|
||||
|
Loading…
Reference in New Issue
Block a user