Auto iterate through configuration inputs

Allows user to map all inputs seamlessly without having to
click on each button.
Also increased button timeout to 5 seconds from 1.5 due to pita.

Motion controls are not included since they will be special cases.
This commit is contained in:
MikeRavenelle
2014-06-14 18:15:41 -05:00
parent f9650c52f8
commit ffa6572116
2 changed files with 32 additions and 5 deletions

View File

@ -5,7 +5,7 @@
#pragma once
#define SLIDER_TICK_COUNT 100
#define DETECT_WAIT_TIME 1500
#define DETECT_WAIT_TIME 5000
#define PREVIEW_UPDATE_TIME 25
// might have to change this setup for wiimote
@ -203,6 +203,7 @@ public:
wxComboBox* device_cbox;
std::vector<ControlGroupBox*> control_groups;
std::vector<ControlButton*> control_buttons;
protected:
@ -213,6 +214,7 @@ private:
ControlDialog* m_control_dialog;
InputConfigDialog* const m_config_dialog;
InputConfig& m_config;
bool DetectButton(ControlButton* button);
};
class InputConfigDialog : public wxDialog