Input: improve MMJOY settings dialog / change threshold behaviour

This commit is contained in:
Unknown 2017-12-01 14:21:27 +01:00 committed by Ivan
parent a285409f59
commit 6891371a79
10 changed files with 121 additions and 66 deletions

View file

@ -96,7 +96,20 @@ pad_settings_dialog::pad_settings_dialog(const std::string& device, std::shared_
connect(&m_timer_input, &QTimer::timeout, [=]()
{
m_handler->GetNextButtonPress(m_device_name, callback);
std::vector<std::string> buttons =
{
m_cfg_entries[button_ids::id_pad_l2].key,
m_cfg_entries[button_ids::id_pad_r2].key,
m_cfg_entries[button_ids::id_pad_lstick_left].key,
m_cfg_entries[button_ids::id_pad_lstick_right].key,
m_cfg_entries[button_ids::id_pad_lstick_down].key,
m_cfg_entries[button_ids::id_pad_lstick_up].key,
m_cfg_entries[button_ids::id_pad_rstick_left].key,
m_cfg_entries[button_ids::id_pad_rstick_right].key,
m_cfg_entries[button_ids::id_pad_rstick_down].key,
m_cfg_entries[button_ids::id_pad_rstick_up].key
};
m_handler->GetNextButtonPress(m_device_name, callback, false, buttons);
});
m_timer_input.start(1);