mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
input: add timer to raw mouse enumeration
This commit is contained in:
parent
b56f9490f5
commit
b3df439c51
1 changed files with 4 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "Emu/RSX/RSXThread.h"
|
||||
#include "Emu/Io/interception.h"
|
||||
#include "Input/raw_mouse_config.h"
|
||||
#include "Utilities/Timer.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <hidusage.h>
|
||||
|
@ -337,6 +338,8 @@ void raw_mouse_handler::enumerate_devices(u32 max_connect)
|
|||
return;
|
||||
}
|
||||
|
||||
Timer timer{};
|
||||
|
||||
#ifdef _WIN32
|
||||
u32 num_devices{};
|
||||
u32 res = GetRawInputDeviceList(nullptr, &num_devices, sizeof(RAWINPUTDEVICELIST));
|
||||
|
@ -416,7 +419,7 @@ void raw_mouse_handler::enumerate_devices(u32 max_connect)
|
|||
}
|
||||
#endif
|
||||
|
||||
input_log.notice("raw_mouse_handler: found %d devices", m_raw_mice.size());
|
||||
input_log.notice("raw_mouse_handler: found %d devices in %f ms", m_raw_mice.size(), timer.GetElapsedTimeInMilliSec());
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
Loading…
Add table
Reference in a new issue