mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 14:58:41 -05:00
Added TAS controls to the menu under Tools
This commit is contained in:
@ -303,6 +303,7 @@ GRenderWindow::GRenderWindow(GMainWindow* parent, EmuThread* emu_thread_,
|
||||
connect(this, &GRenderWindow::ExecuteProgramSignal, parent, &GMainWindow::OnExecuteProgram,
|
||||
Qt::QueuedConnection);
|
||||
connect(this, &GRenderWindow::ExitSignal, parent, &GMainWindow::OnExit, Qt::QueuedConnection);
|
||||
connect(this, &GRenderWindow::TasPlaybackStateChanged, parent, &GMainWindow::OnTasStateChanged);
|
||||
}
|
||||
|
||||
void GRenderWindow::ExecuteProgram(std::size_t program_index) {
|
||||
@ -319,10 +320,18 @@ GRenderWindow::~GRenderWindow() {
|
||||
|
||||
void GRenderWindow::OnFrameDisplayed() {
|
||||
input_subsystem->GetTas()->UpdateThread();
|
||||
TasInput::TasState new_tas_state = std::get<0>(input_subsystem->GetTas()->GetStatus());
|
||||
|
||||
if (!first_frame) {
|
||||
last_tas_state = new_tas_state;
|
||||
first_frame = true;
|
||||
emit FirstFrameDisplayed();
|
||||
}
|
||||
|
||||
if (new_tas_state != last_tas_state) {
|
||||
last_tas_state = new_tas_state;
|
||||
emit TasPlaybackStateChanged();
|
||||
}
|
||||
}
|
||||
|
||||
bool GRenderWindow::IsShown() const {
|
||||
|
Reference in New Issue
Block a user