mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
Reduce input mapping detection time to 3 seconds because 5 seconds was ridciculously long and output (rumble) testing time to 2 seconds because 5 seconds was annoyingly long.
This commit is contained in:
@ -12,6 +12,10 @@
|
|||||||
|
|
||||||
namespace MappingCommon
|
namespace MappingCommon
|
||||||
{
|
{
|
||||||
|
|
||||||
|
constexpr int INPUT_DETECT_TIME = 3000;
|
||||||
|
constexpr int OUTPUT_DETECT_TIME = 2000;
|
||||||
|
|
||||||
QString GetExpressionForControl(const QString& control_name,
|
QString GetExpressionForControl(const QString& control_name,
|
||||||
const ciface::Core::DeviceQualifier& control_device,
|
const ciface::Core::DeviceQualifier& control_device,
|
||||||
const ciface::Core::DeviceQualifier& default_device, Quote quote)
|
const ciface::Core::DeviceQualifier& default_device, Quote quote)
|
||||||
@ -41,7 +45,9 @@ QString GetExpressionForControl(const QString& control_name,
|
|||||||
QString DetectExpression(ControlReference* reference, ciface::Core::Device* device,
|
QString DetectExpression(ControlReference* reference, ciface::Core::Device* device,
|
||||||
const ciface::Core::DeviceQualifier& default_device, Quote quote)
|
const ciface::Core::DeviceQualifier& default_device, Quote quote)
|
||||||
{
|
{
|
||||||
ciface::Core::Device::Control* const ctrl = reference->Detect(5000, device);
|
const int ms = reference->IsInput() ? INPUT_DETECT_TIME : OUTPUT_DETECT_TIME;
|
||||||
|
|
||||||
|
ciface::Core::Device::Control* const ctrl = reference->Detect(ms, device);
|
||||||
|
|
||||||
if (ctrl)
|
if (ctrl)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user