refresh ui and check events at 64Hz
This commit is contained in:
parent
7dfd725775
commit
2e6c2b826b
2 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
#include <stdbool.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "emulator.h"
|
||||
#include "ui.h"
|
||||
|
@ -16,6 +17,8 @@ int main( int argc, char** argv )
|
|||
while ( true ) {
|
||||
ui_get_event();
|
||||
ui_update_display();
|
||||
|
||||
usleep( 1000000 / 64 );
|
||||
}
|
||||
|
||||
/* Never reached */
|
||||
|
|
Loading…
Reference in a new issue