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
|
@ -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;
|
||||
|
|
|
@ -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