mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Only call checkKeys() when rendering, as it will pause VM
This commit is contained in:
parent
09985655a2
commit
6a6d7f1832
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,6 @@ fn submain() !void {
|
|||
agnes.agnes_set_input(ag, &ag_input, 0);
|
||||
|
||||
while(true) {
|
||||
checkKeys();
|
||||
var new_frame:bool = false;
|
||||
_ = agnes.agnes_tick(ag, &new_frame);
|
||||
|
||||
|
|
@ -96,6 +95,7 @@ fn submain() !void {
|
|||
}
|
||||
|
||||
uvm.render(@ptrCast(&gfxFramebuffer), WIDTH * HEIGHT * 4);
|
||||
checkKeys();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue