Input: move m_is_init to base class

This commit is contained in:
Megamouse 2022-10-21 22:47:25 +02:00
parent ddd261c943
commit e499c3c6e3
7 changed files with 7 additions and 10 deletions

View file

@ -338,7 +338,7 @@ pad_preview_values xinput_pad_handler::get_preview_values(const std::unordered_m
bool xinput_pad_handler::Init()
{
if (is_init)
if (m_is_init)
return true;
for (auto it : XINPUT_INFO::LIBRARY_FILENAMES)
@ -357,7 +357,7 @@ bool xinput_pad_handler::Init()
if (xinputGetState && xinputSetState && xinputGetBatteryInformation)
{
is_init = true;
m_is_init = true;
break;
}
@ -371,7 +371,7 @@ bool xinput_pad_handler::Init()
}
}
if (!is_init)
if (!m_is_init)
return false;
return true;