Skip to content

Commit

Permalink
tab to ffwd
Browse files Browse the repository at this point in the history
  • Loading branch information
griffi-gh committed Jan 31, 2024
1 parent 18c7148 commit 683ac4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yarge-frontend-sdl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ fn main() {
}

//Run emulation for one frame
for _ in 0..ur_store.speed {
let emu_speed = ur_store.speed * if event_pump.keyboard_state().is_scancode_pressed(Scancode::Tab) { 8 } else { 1 };
for _ in 0..emu_speed {
gb.run_for_frame().unwrap();
}

Expand Down

0 comments on commit 683ac4f

Please sign in to comment.