mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
Merge pull request #7900 from german77/enter
yuzu: config: Fix mapping issues with the enter key
This commit is contained in:
commit
83a84f1c2d
@ -1332,6 +1332,9 @@ void ConfigureInputPlayer::HandleClick(
|
|||||||
QPushButton* button, std::size_t button_id,
|
QPushButton* button, std::size_t button_id,
|
||||||
std::function<void(const Common::ParamPackage&)> new_input_setter,
|
std::function<void(const Common::ParamPackage&)> new_input_setter,
|
||||||
InputCommon::Polling::InputType type) {
|
InputCommon::Polling::InputType type) {
|
||||||
|
if (timeout_timer->isActive()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (button == ui->buttonMotionLeft || button == ui->buttonMotionRight) {
|
if (button == ui->buttonMotionLeft || button == ui->buttonMotionRight) {
|
||||||
button->setText(tr("Shake!"));
|
button->setText(tr("Shake!"));
|
||||||
} else {
|
} else {
|
||||||
|
@ -227,6 +227,9 @@ void ConfigureTouchFromButton::RenameMapping() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ConfigureTouchFromButton::GetButtonInput(const int row_index, const bool is_new) {
|
void ConfigureTouchFromButton::GetButtonInput(const int row_index, const bool is_new) {
|
||||||
|
if (timeout_timer->isActive()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
binding_list_model->item(row_index, 0)->setText(tr("[press key]"));
|
binding_list_model->item(row_index, 0)->setText(tr("[press key]"));
|
||||||
|
|
||||||
input_setter = [this, row_index, is_new](const Common::ParamPackage& params,
|
input_setter = [this, row_index, is_new](const Common::ParamPackage& params,
|
||||||
|
Loading…
Reference in New Issue
Block a user