Updated some examples to use new mouse button functionality

This commit is contained in:
Adam Greenwood-Byrne 2021-03-24 21:20:53 +00:00
parent a0af1dc10a
commit e16f968790
3 changed files with 5 additions and 5 deletions

View file

@ -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);

View file

@ -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 */

View file

@ -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 */