mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +00:00
Merge remote-tracking branch 'upstream/master' into pcenginetarget
This commit is contained in:
commit
f17850cf00
@ -10,7 +10,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
#include <dbg.h>
|
#include <joystick.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -68,15 +68,23 @@ int main (void)
|
|||||||
gotoxy ((XSize - strlen (Text)) / 2, YSize / 2);
|
gotoxy ((XSize - strlen (Text)) / 2, YSize / 2);
|
||||||
cprintf ("%s", Text);
|
cprintf ("%s", Text);
|
||||||
|
|
||||||
|
#if defined(__NES__)
|
||||||
|
|
||||||
|
/* Wait for the user to press a button */
|
||||||
|
joy_install (joy_static_stddrv);
|
||||||
|
while (!joy_read (JOY_1)) ;
|
||||||
|
joy_uninstall ();
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
/* Wait for the user to press a key */
|
/* Wait for the user to press a key */
|
||||||
(void) cgetc ();
|
(void) cgetc ();
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Clear the screen again */
|
/* Clear the screen again */
|
||||||
clrscr ();
|
clrscr ();
|
||||||
|
|
||||||
/* Done */
|
/* Done */
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user