mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-26 08:47:54 -05:00
input_common/tas: new update method
This commit is contained in:
@ -41,8 +41,7 @@ void ControllerDialog::refreshConfiguration() {
|
||||
constexpr std::size_t player = 0;
|
||||
widget->SetPlayerInputRaw(player, players[player].buttons, players[player].analogs);
|
||||
widget->SetControllerType(players[player].controller_type);
|
||||
ControllerCallback callback{[this](ControllerInput input) { InputController(input); },
|
||||
[this](bool update) { UpdateController(update); }};
|
||||
ControllerCallback callback{[this](ControllerInput input) { InputController(input); }};
|
||||
widget->SetCallBack(callback);
|
||||
widget->repaint();
|
||||
widget->SetConnectedStatus(players[player].connected);
|
||||
@ -84,10 +83,3 @@ void ControllerDialog::InputController(ControllerInput input) {
|
||||
}
|
||||
input_subsystem->GetTas()->RecordInput(buttons, input.axis_values);
|
||||
}
|
||||
|
||||
void ControllerDialog::UpdateController(bool update) {
|
||||
if (!update) {
|
||||
return;
|
||||
}
|
||||
input_subsystem->GetTas()->UpdateThread();
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ struct ControllerInput {
|
||||
|
||||
struct ControllerCallback {
|
||||
std::function<void(ControllerInput)> input;
|
||||
std::function<void(bool)> update;
|
||||
};
|
||||
|
||||
class ControllerDialog : public QWidget {
|
||||
@ -45,7 +44,6 @@ protected:
|
||||
|
||||
private:
|
||||
void InputController(ControllerInput input);
|
||||
void UpdateController(bool update);
|
||||
QAction* toggle_view_action = nullptr;
|
||||
QFileSystemWatcher* watcher = nullptr;
|
||||
PlayerControlPreview* widget;
|
||||
|
Reference in New Issue
Block a user