summaryrefslogtreecommitdiff
path: root/demo/source/loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'demo/source/loop.c')
-rw-r--r--demo/source/loop.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/demo/source/loop.c b/demo/source/loop.c
index 003ac61..e57cafb 100644
--- a/demo/source/loop.c
+++ b/demo/source/loop.c
@@ -1,28 +1,28 @@
#include <agbx-demo.h>
-#include <agbx/key.h>
-#include <agbx/gfx.h>
+#include <ax/key.h>
+#include <ax/gfx.h>
-bool agbxd_loop(agbxd_dat * const _dat) {
+bool axd_loop(axd_dat * const _dat) {
bool err = false;
_dat->prevcol = 0x0u;
- agbx_plot4(_dat->vaddr,_dat->pos.x,_dat->pos.y,0x1u);
+ ax_plot4(_dat->vaddr,_dat->pos.x,_dat->pos.y,0x1u);
for (;;) {
_dat->prevpos = _dat->pos;
- agbxd_upd const upd = agbxd_chkkeys(_dat);
+ axd_upd const upd = axd_chkkeys(_dat);
if (upd.done) {
err = upd.err;
break;
}
- agbx_vsync();
+ ax_vsync();
if (upd.drw) {
_dat->prevcol = _dat->col;
- if (upd.mv) {agbx_plot4(_dat->vaddr,_dat->pos.x,_dat->pos.y,_dat->col);}
+ if (upd.mv) {ax_plot4(_dat->vaddr,_dat->pos.x,_dat->pos.y,_dat->col);}
}
if (upd.mv) {
- agbx_plot4(_dat->vaddr,_dat->prevpos.x,_dat->prevpos.y,_dat->prevcol);
- _dat->prevcol = agbx_rd4(_dat->vaddr,_dat->pos.x,_dat->pos.y);
- agbx_plot4(_dat->vaddr,_dat->pos.x,_dat->pos.y,0x1u);
+ ax_plot4(_dat->vaddr,_dat->prevpos.x,_dat->prevpos.y,_dat->prevcol);
+ _dat->prevcol = ax_rd4(_dat->vaddr,_dat->pos.x,_dat->pos.y);
+ ax_plot4(_dat->vaddr,_dat->pos.x,_dat->pos.y,0x1u);
}
}
return err;