mirror of
https://github.com/cc65/cc65.git
synced 2025-01-29 21:31:53 +00:00
Added a JOY_FIRE() macro to the Atmos and Telestrat C headers.
This commit is contained in:
parent
6521930880
commit
3890492a9b
@ -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 */
|
||||
|
@ -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[] */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user