diff options
Diffstat (limited to 'agbx/source')
-rw-r--r-- | agbx/source/bs/done.c | 2 | ||||
-rw-r--r-- | agbx/source/gfx/plot.c | 2 | ||||
-rw-r--r-- | agbx/source/gfx/setpx.c | 2 | ||||
-rw-r--r-- | agbx/source/key/getkeymap.c | 15 |
4 files changed, 21 insertions, 0 deletions
diff --git a/agbx/source/bs/done.c b/agbx/source/bs/done.c index afac799..81fd7c5 100644 --- a/agbx/source/bs/done.c +++ b/agbx/source/bs/done.c @@ -6,6 +6,8 @@ #include <agbx/priv.h> +#include <agbx/gfx.h> + void agbx_done(agbx_err const _err) { if (_err == agbx_err_ok) { __asm__ ( diff --git a/agbx/source/gfx/plot.c b/agbx/source/gfx/plot.c index 5a65972..2146c54 100644 --- a/agbx/source/gfx/plot.c +++ b/agbx/source/gfx/plot.c @@ -6,6 +6,8 @@ #include <agbx/priv.h> +#include <agbx/gfx.h> + agbx_i10 agbx_plot3(agbx_i8 const _x,agbx_i8 const _y,agbx_i10 const _col) { #if defined(__agbx_dbg) if (_x >= 0xF0u || _y >= 0xA0u) {agbx_done(agbx_err_pos2big);} diff --git a/agbx/source/gfx/setpx.c b/agbx/source/gfx/setpx.c index ace2463..563fd3b 100644 --- a/agbx/source/gfx/setpx.c +++ b/agbx/source/gfx/setpx.c @@ -6,6 +6,8 @@ #include <agbx/priv.h> +#include <agbx/gfx.h> + void agbx_setpx1(agbx_i10 const _px,agbx_i8 const _col) { #if defined(__agbx_dbg) agbx_i10 const dispcnt = agbx_get10(0x4000000u); diff --git a/agbx/source/key/getkeymap.c b/agbx/source/key/getkeymap.c new file mode 100644 index 0000000..457bf42 --- /dev/null +++ b/agbx/source/key/getkeymap.c @@ -0,0 +1,15 @@ +/* + Copyright 2022 Gabriel Jensen. + This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. + If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. +*/ + +#include <agbx/priv.h> + +#include <agbx/key.h> + +agbx_keymap agbx_getkeymap(void) { + agbx_keymap map; + map._keys = agbx_get10(0x4000130u); + return map; +} |