mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
cellPad: minor optimization
This commit is contained in:
parent
870d26f9d8
commit
f0b7afd7cc
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ error_code cellPadEnd()
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
void clear_pad_buffer(const std::shared_ptr<Pad> pad)
|
void clear_pad_buffer(const std::shared_ptr<Pad>& pad)
|
||||||
{
|
{
|
||||||
if (!pad)
|
if (!pad)
|
||||||
return;
|
return;
|
||||||
|
@ -159,7 +159,6 @@ error_code cellPadGetData(u32 port_no, vm::ptr<CellPadData> data)
|
||||||
return CELL_PAD_ERROR_NO_DEVICE;
|
return CELL_PAD_ERROR_NO_DEVICE;
|
||||||
|
|
||||||
const auto pad = pads[port_no];
|
const auto pad = pads[port_no];
|
||||||
const auto setting = config->port_setting[port_no];
|
|
||||||
|
|
||||||
if (!(pad->m_port_status & CELL_PAD_STATUS_CONNECTED))
|
if (!(pad->m_port_status & CELL_PAD_STATUS_CONNECTED))
|
||||||
return CELL_PAD_ERROR_NO_DEVICE;
|
return CELL_PAD_ERROR_NO_DEVICE;
|
||||||
|
@ -172,6 +171,7 @@ error_code cellPadGetData(u32 port_no, vm::ptr<CellPadData> data)
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const auto setting = config->port_setting[port_no];
|
||||||
bool btnChanged = false;
|
bool btnChanged = false;
|
||||||
|
|
||||||
if (rinfo.ignore_input)
|
if (rinfo.ignore_input)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue