mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-15 11:18:36 +12:00
perf_overlays: add avg and 1p high/low
This commit is contained in:
parent
f103004aa0
commit
98b668b3a8
9 changed files with 129 additions and 20 deletions
|
@ -53,7 +53,7 @@ bool hid_pad_handler<Device>::Init()
|
|||
if (res != 0)
|
||||
fmt::throw_exception("%s hidapi-init error.threadproc", m_type);
|
||||
|
||||
for (size_t i = 1; i <= MAX_GAMEPADS; i++) // Controllers 1-n in GUI
|
||||
for (usz i = 1; i <= MAX_GAMEPADS; i++) // Controllers 1-n in GUI
|
||||
{
|
||||
m_controllers.emplace(m_name_string + std::to_string(i), std::make_shared<Device>());
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ void hid_pad_handler<Device>::enumerate_devices()
|
|||
}
|
||||
else
|
||||
{
|
||||
const size_t count = std::count_if(m_controllers.cbegin(), m_controllers.cend(), [](const auto& c) { return c.second && c.second->hidDevice; });
|
||||
const usz count = std::count_if(m_controllers.cbegin(), m_controllers.cend(), [](const auto& c) { return c.second && c.second->hidDevice; });
|
||||
if (count > 0)
|
||||
{
|
||||
hid_log.success("%s Controllers found: %d", m_type, count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue