Permalink
Browse files

Qt/MappingButton: Fix bad range default

  • Loading branch information...
spycrab committed May 2, 2018
1 parent 40cf07d commit 0595fd498f394139ecf57b3bcaecd327baadcb71
Showing with 3 additions and 1 deletion.
  1. +3 −1 Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp
@@ -23,6 +23,8 @@
#include "InputCommon/ControllerInterface/ControllerInterface.h"
#include "InputCommon/ControllerInterface/Device.h"
constexpr int SLIDER_TICK_COUNT = 100;
static QString EscapeAmpersand(QString&& string)
{
return string.replace(QStringLiteral("&"), QStringLiteral("&&"));
@@ -130,7 +132,7 @@ void MappingButton::OnButtonTimeout()
void MappingButton::Clear()
{
m_reference->SetExpression("");
m_reference->range = 100;
m_reference->range = 100.0 / SLIDER_TICK_COUNT;
m_parent->SaveSettings();
Update();
}

0 comments on commit 0595fd4

Please sign in to comment.