Mercurial > repos > simple16
comparison src/system.h @ 16:ae58e7c3c328
Poll events regularly to avoid unresponsive app warnings. Handle quit event
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 27 Mar 2016 21:42:10 -0700 |
parents | c8a0dbd7752c |
children | 4c9dbfa30a66 |
comparison
equal
deleted
inserted
replaced
15:c8a0dbd7752c | 16:ae58e7c3c328 |
---|---|
2 #define SYSTEM_H_ | 2 #define SYSTEM_H_ |
3 | 3 |
4 int system_init(int width, int height); | 4 int system_init(int width, int height); |
5 uint16_t *system_get_framebuffer(int *pitch); | 5 uint16_t *system_get_framebuffer(int *pitch); |
6 void system_framebuffer_updated(); | 6 void system_framebuffer_updated(); |
7 void system_poll_events(); | |
7 | 8 |
8 #endif //SYSTEM_H_ | 9 #endif //SYSTEM_H_ |