From 0deeccebf8bc0e7658213b12875efaad3abf216f Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Mon, 4 Sep 2017 09:41:19 +0200 Subject: [PATCH] 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. --- include/atari.h | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5