InputManager: Remove unused pointer type
This commit is contained in:
@@ -478,8 +478,7 @@ void ControllerBindingWidget::bindBindingWidgets(QWidget* parent)
|
||||
for (const Controller::ControllerBindingInfo& bi : m_controller_info->bindings)
|
||||
{
|
||||
if (bi.type == InputBindingInfo::Type::Axis || bi.type == InputBindingInfo::Type::HalfAxis ||
|
||||
bi.type == InputBindingInfo::Type::Button || bi.type == InputBindingInfo::Type::Pointer ||
|
||||
bi.type == InputBindingInfo::Type::AbsolutePointer)
|
||||
bi.type == InputBindingInfo::Type::Button || bi.type == InputBindingInfo::Type::Pointer)
|
||||
{
|
||||
InputBindingWidget* widget = parent->findChild<InputBindingWidget*>(QString::fromUtf8(bi.name));
|
||||
if (!widget)
|
||||
|
||||
@@ -269,7 +269,7 @@ void InputBindingDialog::saveListToSettings()
|
||||
else
|
||||
Host::DeleteBaseSettingValue(m_section_name.c_str(), m_key_name.c_str());
|
||||
Host::CommitBaseSettingChanges();
|
||||
if (m_bind_type == InputBindingInfo::Type::Pointer || m_bind_type == InputBindingInfo::Type::AbsolutePointer)
|
||||
if (m_bind_type == InputBindingInfo::Type::Pointer)
|
||||
g_emu_thread->updateControllerSettings();
|
||||
g_emu_thread->reloadInputBindings();
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ void InputBindingWidget::setNewBinding()
|
||||
{
|
||||
Host::SetBaseStringSettingValue(m_section_name.c_str(), m_key_name.c_str(), new_binding.c_str());
|
||||
Host::CommitBaseSettingChanges();
|
||||
if (m_bind_type == InputBindingInfo::Type::Pointer || m_bind_type == InputBindingInfo::Type::AbsolutePointer)
|
||||
if (m_bind_type == InputBindingInfo::Type::Pointer)
|
||||
g_emu_thread->updateControllerSettings();
|
||||
g_emu_thread->reloadInputBindings();
|
||||
}
|
||||
@@ -250,7 +250,7 @@ void InputBindingWidget::clearBinding()
|
||||
{
|
||||
Host::DeleteBaseSettingValue(m_section_name.c_str(), m_key_name.c_str());
|
||||
Host::CommitBaseSettingChanges();
|
||||
if (m_bind_type == InputBindingInfo::Type::Pointer || m_bind_type == InputBindingInfo::Type::AbsolutePointer)
|
||||
if (m_bind_type == InputBindingInfo::Type::Pointer)
|
||||
g_emu_thread->updateControllerSettings();
|
||||
g_emu_thread->reloadInputBindings();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user