]> git.sur5r.net Git - cc65/commitdiff
Added JOY_FIRE.
authorOliver Schmidt <ol.sc@web.de>
Mon, 4 Sep 2017 07:41:19 +0000 (09:41 +0200)
committerGitHub <noreply@github.com>
Mon, 4 Sep 2017 07:41:19 +0000 (09:41 +0200)
According to https://en.wikipedia.org/wiki/Atari_8-bit_computer_peripherals it seems appropriate to add a JOY_FIRE definition for the ATARI.

include/atari.h

index ca4b2ef267bbcffb1a12184589be4af82b707a67..bf1af7d7bb0c1327193fab2a73ce2608cb3a73fb 100644 (file)
 #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);