From: cuz Date: Thu, 14 Oct 2004 16:33:13 +0000 (+0000) Subject: Added second fire button X-Git-Tag: V2.12.0~591 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=57127ecb06399567b3b166c00b2e2319fcaafd14;p=cc65 Added second fire button git-svn-id: svn://svn.cc65.org/cc65/trunk@3244 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/joystick.h b/include/joystick.h index cc27f7da1..0c8da07c0 100644 --- a/include/joystick.h +++ b/include/joystick.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 1998-2002 Ullrich von Bassewitz */ -/* Wacholderweg 14 */ -/* D-70597 Stuttgart */ -/* EMail: uz@musoftware.de */ +/* (C) 1998-2004 Ullrich von Bassewitz */ +/* Römerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -61,6 +61,7 @@ #define JOY_LEFT 2 #define JOY_RIGHT 3 #define JOY_FIRE 4 +#define JOY_FIRE2 5 /* Second fire button if available */ /* Array of masks used to check the return value of joy_read for a state */ extern const unsigned char joy_masks[8]; @@ -71,6 +72,7 @@ extern const unsigned char joy_masks[8]; #define JOY_BTN_LEFT(v) ((v) & joy_masks[JOY_LEFT]) #define JOY_BTN_RIGHT(v) ((v) & joy_masks[JOY_RIGHT]) #define JOY_BTN_FIRE(v) ((v) & joy_masks[JOY_FIRE]) +#define JOY_BTN_FIRE2(v) ((v) & joy_masks[JOY_FIRE2]) /* The name of the standard joystick driver for a platform */ extern const char joy_stddrv[];