mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-22 02:00:40 +00:00
Updated some examples to use new mouse button functionality
This commit is contained in:
parent
a0af1dc10a
commit
e16f968790
3 changed files with 5 additions and 5 deletions
|
@ -86,7 +86,7 @@ void wgt18()
|
|||
/* copy the whole screen */
|
||||
/* notice how we never use wnormscreen at all! */
|
||||
|
||||
} while (1);
|
||||
} while (but == 0);
|
||||
|
||||
mdeinit();
|
||||
wfreeblock (screen1);
|
||||
|
|
|
@ -88,15 +88,15 @@ void wgt19()
|
|||
|
||||
wcopyscreen (0, 0, 160, 199, screen1, 0, 0, NULL); /* copy half the screen */
|
||||
|
||||
if (mx == 0) /* Show the next sprite */
|
||||
if (but == 1) /* Show the next sprite */
|
||||
{
|
||||
sp++;
|
||||
if (sp > 9)
|
||||
sp = 1;
|
||||
//noclick ();
|
||||
noclick ();
|
||||
}
|
||||
|
||||
} while (1);
|
||||
} while (but != 2);
|
||||
|
||||
msetbounds (0, 0, 319, 199);
|
||||
mdeinit (); /* Deinitialize the mouse handler */
|
||||
|
|
|
@ -126,7 +126,7 @@ void wgt60()
|
|||
|
||||
do { /* Now play the game */
|
||||
looper ();
|
||||
} while (1); /* Until the right mouse button is clicked */
|
||||
} while (but != 2); /* Until the right mouse button is clicked */
|
||||
|
||||
mdeinit();
|
||||
deinitialize_sprites (); /* Deinit the sprite system */
|
||||
|
|
Loading…
Reference in a new issue