add joydemo to c65/mega65 samples, it works when driver is statically linked
This commit is contained in:
@@ -108,6 +108,8 @@ DISK_apple2enh = samples.dsk
|
|||||||
DISK_atari = samples.atr
|
DISK_atari = samples.atr
|
||||||
DISK_atarixl = samples.atr
|
DISK_atarixl = samples.atr
|
||||||
DISK_plus4 = samples.d64
|
DISK_plus4 = samples.d64
|
||||||
|
DISK_c65 = samples.d81
|
||||||
|
DISK_mega65 = samples.d81
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# System-dependent settings
|
# System-dependent settings
|
||||||
@@ -253,6 +255,7 @@ EXELIST_c65 = \
|
|||||||
checkversion \
|
checkversion \
|
||||||
enumdevdir \
|
enumdevdir \
|
||||||
hello \
|
hello \
|
||||||
|
joydemo \
|
||||||
sieve \
|
sieve \
|
||||||
tinyshell
|
tinyshell
|
||||||
|
|
||||||
@@ -336,6 +339,7 @@ EXELIST_mega65 = \
|
|||||||
checkversion \
|
checkversion \
|
||||||
enumdevdir \
|
enumdevdir \
|
||||||
hello \
|
hello \
|
||||||
|
joydemo \
|
||||||
sieve \
|
sieve \
|
||||||
tinyshell
|
tinyshell
|
||||||
|
|
||||||
@@ -560,6 +564,12 @@ samples.d64: samples
|
|||||||
$(foreach file,$(OVERLAYLIST),$(D64_WRITE_PRG_recipe))
|
$(foreach file,$(OVERLAYLIST),$(D64_WRITE_PRG_recipe))
|
||||||
$(foreach file,$(EMD) $(MOU) $(JOY) $(TGI),$(D64_WRITE_SEQ_recipe))
|
$(foreach file,$(EMD) $(MOU) $(JOY) $(TGI),$(D64_WRITE_SEQ_recipe))
|
||||||
|
|
||||||
|
samples.d81: samples
|
||||||
|
@$(C1541) -format "samples,00" d81 $@ >$(NULLDEV)
|
||||||
|
$(foreach file,$(EXELIST_$(SYS)),$(D64_WRITE_PRG_recipe))
|
||||||
|
$(foreach file,$(OVERLAYLIST),$(D64_WRITE_PRG_recipe))
|
||||||
|
$(foreach file,$(EMD) $(MOU) $(JOY) $(TGI),$(D64_WRITE_SEQ_recipe))
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Rule to make an Apple II disk with all samples. Needs the AppleCommander
|
# Rule to make an Apple II disk with all samples. Needs the AppleCommander
|
||||||
# program, available at https://applecommander.github.io/, and a template disk
|
# program, available at https://applecommander.github.io/, and a template disk
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <joystick.h>
|
#include <joystick.h>
|
||||||
|
|
||||||
|
/* define 0 to link the standard driver statically */
|
||||||
|
/* #define DYN_DRV 0 */
|
||||||
|
|
||||||
#ifndef DYN_DRV
|
#ifndef DYN_DRV
|
||||||
# define DYN_DRV 1
|
# define DYN_DRV 1
|
||||||
#endif
|
#endif
|
||||||
@@ -31,7 +34,7 @@ int main (void)
|
|||||||
PRINTF("Driver init..." CR);
|
PRINTF("Driver init..." CR);
|
||||||
|
|
||||||
#if DYN_DRV
|
#if DYN_DRV
|
||||||
/* Load and initialize the driver */
|
/* Load and initialize the standard driver driver */
|
||||||
if ((err = joy_load_driver (joy_stddrv))) {
|
if ((err = joy_load_driver (joy_stddrv))) {
|
||||||
PRINTF ("Driver load error (code %d)." CR
|
PRINTF ("Driver load error (code %d)." CR
|
||||||
"Warning: This program needs the JOY" CR
|
"Warning: This program needs the JOY" CR
|
||||||
@@ -40,7 +43,7 @@ int main (void)
|
|||||||
}
|
}
|
||||||
PRINTF("Driver loaded OK" CR);
|
PRINTF("Driver loaded OK" CR);
|
||||||
#else
|
#else
|
||||||
/* Install the driver */
|
/* Install the standard driver */
|
||||||
joy_install (joy_static_stddrv);
|
joy_install (joy_static_stddrv);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user