mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12: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/RSX/RSXThread.h"
|
||||||
#include "Emu/Io/interception.h"
|
#include "Emu/Io/interception.h"
|
||||||
#include "Input/raw_mouse_config.h"
|
#include "Input/raw_mouse_config.h"
|
||||||
|
#include "Utilities/Timer.h"
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <hidusage.h>
|
#include <hidusage.h>
|
||||||
|
@ -337,6 +338,8 @@ void raw_mouse_handler::enumerate_devices(u32 max_connect)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Timer timer{};
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
u32 num_devices{};
|
u32 num_devices{};
|
||||||
u32 res = GetRawInputDeviceList(nullptr, &num_devices, sizeof(RAWINPUTDEVICELIST));
|
u32 res = GetRawInputDeviceList(nullptr, &num_devices, sizeof(RAWINPUTDEVICELIST));
|
||||||
|
@ -416,7 +419,7 @@ void raw_mouse_handler::enumerate_devices(u32 max_connect)
|
||||||
}
|
}
|
||||||
#endif
|
#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
|
#ifdef _WIN32
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue