|
@@ -25,6 +25,7 @@
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#define LONG_HOLD_MSEC 500
|
|
#define LONG_HOLD_MSEC 500
|
|
|
|
+#define INITAL_AUTOREPEAT_MSEC 650
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
InputComponent::InputComponent(QObject* parent) : ComponentBase(parent), m_autoRepeatCount(0)
|
|
InputComponent::InputComponent(QObject* parent) : ComponentBase(parent), m_autoRepeatCount(0)
|
|
@@ -49,7 +50,6 @@ bool InputComponent::addInput(InputBase* base)
|
|
//
|
|
//
|
|
connect(base, &InputBase::receivedInput, this, &InputComponent::remapInput);
|
|
connect(base, &InputBase::receivedInput, this, &InputComponent::remapInput);
|
|
|
|
|
|
-
|
|
|
|
// for auto-repeating inputs
|
|
// for auto-repeating inputs
|
|
//
|
|
//
|
|
m_autoRepeatTimer = new QTimer(this);
|
|
m_autoRepeatTimer = new QTimer(this);
|
|
@@ -207,7 +207,7 @@ void InputComponent::remapInput(const QString &source, const QString &keycode, b
|
|
}
|
|
}
|
|
|
|
|
|
if (!m_autoRepeatActions.isEmpty())
|
|
if (!m_autoRepeatActions.isEmpty())
|
|
- m_autoRepeatTimer->start(500);
|
|
|
|
|
|
+ m_autoRepeatTimer->start(INITAL_AUTOREPEAT_MSEC);
|
|
|
|
|
|
if (!queuedActions.isEmpty())
|
|
if (!queuedActions.isEmpty())
|
|
{
|
|
{
|