Commit Graph

8 Commits

Author SHA1 Message Date
Ry
06be1034f9 fox32rom: Add EVENT_TYPE_KEY_DOWN and EVENT_TYPE_KEY_UP 2022-04-17 16:21:56 -07:00
Lua MacDougall
3871ae4810 fox32rom: Rewrite event system 2022-04-16 14:59:19 -07:00
ry755
a7ccb2167e fox32rom: Rename "submenu" to "menu" 2022-02-21 21:26:30 -08:00
ry755
519d80a0c6 fox32rom: Make all consts uppercase 2022-02-11 20:44:11 -08:00
ry755
041cf206ec fox32rom: Use a FIFO queue for events instead of a LIFO stack
Using a LIFO stack for events was a dumb idea in the first place, this
should've been a FIFO queue from the beginning.

This allows the system to respond to events in the same order that they
are generated, instead of always responding to the newest event first.
2022-02-11 20:27:23 -08:00
ry755
b8195a079d fox32rom: Don't use the stack pointer for the event stack
Previously this used a very hacky way to push and pop events on the
event stack. This especially caused issues since it disabled and
enabled interrupts, and these routines are called in an interrupt
handler, which breaks things in some cases :p
2022-01-30 00:53:25 -08:00
ry755
7c3794ed45 fox32rom: Make the event stack pointer comparison more understandable 2022-01-30 00:38:58 -08:00
ry755
705593697b Initial commit
I should've made a git repo for this much sooner, oops :p
2022-01-26 22:21:21 -08:00