Added a JOY_FIRE() macro to the Atmos and Telestrat C headers.

This commit is contained in:
Greg King 2020-05-28 09:59:21 -04:00
parent 6521930880
commit 3890492a9b
2 changed files with 7 additions and 0 deletions

View File

@ -120,6 +120,9 @@
#define JOY_RIGHT_MASK 0x02
#define JOY_BTN_1_MASK 0x20
#define JOY_FIRE_MASK JOY_BTN_1_MASK
#define JOY_FIRE(v) ((v) & JOY_FIRE_MASK)
/* No support for dynamically loadable drivers */

View File

@ -105,6 +105,10 @@ extern void telestrat_240_200_2_tgi[]; /* Referred to by tgi_static_stddrv[
#define JOY_RIGHT_MASK 0x02
#define JOY_BTN_1_MASK 0x04
#define JOY_FIRE_MASK JOY_BTN_1_MASK
#define JOY_FIRE(v) ((v) & JOY_FIRE_MASK)
/* The addresses of the static drivers */
extern void telestrat_joy[]; /* Referred to by joy_static_stddrv[] */