diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-28 12:35:24 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2025-08-28 12:35:24 +1000 |
| commit | 7f96fc5e7f412a66d460dcaa82bbdbcaea08f360 (patch) | |
| tree | 67ebd30bce45f8e5ffed73212f287b4152a5b71d /ROMs/hid.c | |
| parent | 634681ce2bb36cd686943102a0f071cd6a09049f (diff) | |
everything is finally at peace
Diffstat (limited to 'ROMs/hid.c')
| -rw-r--r-- | ROMs/hid.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/ROMs/hid.c b/ROMs/hid.c deleted file mode 100644 index 615808a..0000000 --- a/ROMs/hid.c +++ /dev/null @@ -1,34 +0,0 @@ -int setPixel(int x, int y, int c) -{ - char* screenStart = 0x402F; - int i = (y * 128) + x; - screenStart[i] = c; -} - -int setPixelIndex(int i, int c) -{ - char* screenStart = 0x402F; - screenStart[i] = c; -} - -int clear(int c) -{ - char* screenStart = 0x402F; - char screenSize = 64 * 128; - for (int i = 0; i < screenSize; i++) - { - screenStart[i] = c; - } -} - -int main() -{ - while (1) - { - int* hid = 0x602F; - int mouseIndex = hid[0]; - int mouseState = hid[1]; - if (mouseState & 1 == 1) - setPixelIndex(mouseIndex, 1); - } -}
\ No newline at end of file |
