mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 23:45:12 +00:00
input: ignore mouse handler events until initialized
And revert the now obsolete reload requests
This commit is contained in:
parent
bc23615508
commit
60b90075ac
2 changed files with 12 additions and 4 deletions
|
|
@ -267,8 +267,6 @@ void raw_mouse_handler::Init(const u32 max_connect)
|
|||
input_log.notice("raw_mouse_handler: Could not load raw mouse config. Using defaults.");
|
||||
}
|
||||
|
||||
g_cfg_raw_mouse.reload_requested = true;
|
||||
|
||||
m_mice.clear();
|
||||
m_mice.resize(max_connect);
|
||||
|
||||
|
|
@ -559,6 +557,12 @@ std::map<void*, raw_mouse> raw_mouse_handler::enumerate_devices(u32 max_connect)
|
|||
#ifdef _WIN32
|
||||
void raw_mouse_handler::handle_native_event(const MSG& msg)
|
||||
{
|
||||
if (m_info.max_connect == 0)
|
||||
{
|
||||
// Not initialized
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg.message != WM_INPUT)
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue