input
This commit is contained in:
10
src/main.c
10
src/main.c
@@ -33,8 +33,14 @@ int32_t main(const int32_t argc, const char **argv) {
|
||||
entityUpdate(ent++);
|
||||
} while(ent < (ENTITIES + ENTITY_COUNT));
|
||||
|
||||
renderUpdate();
|
||||
usleep(100 * 1000); // Sleep for 16 milliseconds (60 FPS)
|
||||
if(inputIsDown(INPUT_DOWN)) {
|
||||
printf("Input down pressed\n");
|
||||
} else {
|
||||
printf("Input down not pressed\n");
|
||||
}
|
||||
|
||||
// renderUpdate();
|
||||
usleep(16 * 1000); // Sleep for 16 milliseconds (60 FPS)
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
Reference in New Issue
Block a user