This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "A pseudo Operating System for the Dreamcast.".
The branch, master has been updated
via 8a8b56a03bade40fffb3fc36e9c0d4ff971a20d5 (commit)
from 7f261a396099cfd4cbbd771108bf670914568ed6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8a8b56a03bade40fffb3fc36e9c0d4ff971a20d5
Author: Donald Haase <qu...@ya...>
Date: Tue Jun 4 09:38:10 2024 -0400
Avoid infinite loop. (#604)
Co-authored-by: QuzarDC <qu...@co...>
-----------------------------------------------------------------------
Summary of changes:
examples/dreamcast/libdream/mouse/mouse.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/examples/dreamcast/libdream/mouse/mouse.c b/examples/dreamcast/libdream/mouse/mouse.c
index b033ba8a..13be6577 100644
--- a/examples/dreamcast/libdream/mouse/mouse.c
+++ b/examples/dreamcast/libdream/mouse/mouse.c
@@ -13,10 +13,6 @@ void mouse_test(void) {
if(!cont) continue;
- mouse = maple_enum_type(0, MAPLE_FUNC_MOUSE);
-
- if(!mouse) continue;
-
/* Check for start on the controller */
cstate = (cont_state_t *)maple_dev_status(cont);
@@ -32,11 +28,14 @@ void mouse_test(void) {
thd_sleep(10);
+ mouse = maple_enum_type(0, MAPLE_FUNC_MOUSE);
+
+ if(!mouse) continue;
+
/* Check for mouse input */
mstate = (mouse_state_t *)maple_dev_status(mouse);
- if(!mstate)
- continue;
+ if(!mstate) continue;
/* Move the cursor if applicable */
if(mstate->dx || mstate->dy || mstate->dz) {
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|