From: Oliver Schmidt Date: Mon, 4 Sep 2017 07:41:19 +0000 (+0200) Subject: Added JOY_FIRE. X-Git-Tag: V2.17~97 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0deeccebf8bc0e7658213b12875efaad3abf216f;p=cc65 Added JOY_FIRE. According to https://en.wikipedia.org/wiki/Atari_8-bit_computer_peripherals it seems appropriate to add a JOY_FIRE definition for the ATARI. --- diff --git a/include/atari.h b/include/atari.h index ca4b2ef26..bf1af7d7b 100644 --- a/include/atari.h +++ b/include/atari.h @@ -156,6 +156,9 @@ #define JOY_RIGHT_MASK 0x08 #define JOY_BTN_1_MASK 0x10 +#define JOY_FIRE_MASK JOY_BTN_1_MASK +#define JOY_FIRE(v) ((v) & JOY_FIRE_MASK) + /* color register functions */ extern void __fastcall__ _setcolor (unsigned char color_reg, unsigned char hue, unsigned char luminace); extern void __fastcall__ _setcolor_low (unsigned char color_reg, unsigned char color_value);