diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-28 22:30:02 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-28 22:30:02 +1000 |
| commit | 5d012f16b2a0200087afe9dffc906046d258b3b8 (patch) | |
| tree | ad7a8cee368d1b83e08df13243678a34d34c6aae /ROMs/paint.c | |
| parent | 76cea79a46d42f8f59503d3bb421f0d298da66cb (diff) | |
seperated modules out
Diffstat (limited to 'ROMs/paint.c')
| -rw-r--r-- | ROMs/paint.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/ROMs/paint.c b/ROMs/paint.c index 7e0427b..71c478e 100644 --- a/ROMs/paint.c +++ b/ROMs/paint.c @@ -1,23 +1,25 @@ -#include "lib.c" +#include "std.c" +#include "hid.c" +#include "screen.c" int main() { int color = 0; while (true) { - int mouseIndex = getMouseIndex(); - int mouseState = getMouseState(); + int mouseIndex = hid_getMouseIndex(); + int mouseState = hid_getMouseState(); if (mouseState & MS_LEFT) - setPixel(mouseIndex, (color % 3) + 1); + screen_setPixel(mouseIndex, (color % 3) + 1); - if (getKeyState(SK_C)) - clear(COLOR_BLACK); + if (hid_getKeyState(SK_C)) + screen_clear(COLOR_BLACK); - if (getKeyState(SK_A)) + if (hid_getKeyState(SK_A)) { color++; - while (getKeyState(SK_A)) { } + while (hid_getKeyState(SK_A)) { } } } }
\ No newline at end of file |
