refresh ui and check events at 64Hz

This commit is contained in:
Gwenhael Le Moine 2024-09-17 13:19:00 +02:00
parent 7dfd725775
commit 2e6c2b826b
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 5 additions and 2 deletions

View file

@ -8,8 +8,8 @@
#define MODEL_48SX 485
#define MODEL_48GX 486
#define MODEL_40G 406
#define MODEL_49G 496
#define MODEL_40G 406
#define MODEL_49G 496
typedef struct {
char* progname;

View file

@ -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 */