X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fc128.h;h=fe1dd4317ba008870168cf0c4a19f3378aaffb4a;hb=2eac69a94361323bf7556d2cdde8f61c85c5ef99;hp=b1ef88fa3a37ccf65ccfca5b8ae857682d23747a;hpb=8492a4eb718ac0640c49150489a417acc71579ae;p=cc65 diff --git a/include/c128.h b/include/c128.h index b1ef88fa3..fe1dd4317 100644 --- a/include/c128.h +++ b/include/c128.h @@ -91,6 +91,13 @@ #define TGI_COLOR_LIGHTBLUE COLOR_LIGHTBLUE #define TGI_COLOR_GRAY3 COLOR_GRAY3 +/* Masks for joy_read */ +#define JOY_UP_MASK 0x01 +#define JOY_DOWN_MASK 0x02 +#define JOY_LEFT_MASK 0x04 +#define JOY_RIGHT_MASK 0x08 +#define JOY_BTN_1_MASK 0x10 + /* Video mode defines */ #define VIDEOMODE_40x25 0x00 #define VIDEOMODE_80x25 0x80 @@ -134,6 +141,7 @@ extern void c128_joy_mou[]; extern void c128_inkwell_mou[]; extern void c128_pot_mou[]; extern void c128_swlink_ser[]; +extern void c128_hi_tgi[]; extern void c128_vdc_tgi[]; /* Referred to by tgi_static_stddrv[] */ extern void c128_vdc2_tgi[]; @@ -141,26 +149,27 @@ extern void c128_vdc2_tgi[]; unsigned __fastcall__ videomode (unsigned Mode); /* Set the video mode, return the old mode. Call with one of the VIDEOMODE_xx - * constants. - */ +** constants. +*/ void toggle_videomode (void); /* Toggle the video mode between 40 and 80 chars (calls SWAPPER). - * THIS FUNCTION IS DEPRECATED, please use videomode instead! - */ +** THIS FUNCTION IS DEPRECATED, please use videomode instead! +*/ void c64mode (void); /* Switch the C128 into C64 mode. Note: This function will not return! */ void fast (void); /* Switch the CPU into 2MHz mode. Note: This will disable video when in - * 40 column mode. - */ +** 40 column mode. +*/ void slow (void); /* Switch the CPU into 1MHz mode. */ - +unsigned char isfast (void); +/* Returns 1 if the CPU is in 2MHz mode. */ /* End of c128.h */ #endif