From: cuz Date: Thu, 8 Aug 2002 12:28:11 +0000 (+0000) Subject: VIC20 needs other joystick constants X-Git-Tag: V2.12.0~2244 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12154bdaa7fb08655a26275adaf06e75f1ec80fb;p=cc65 VIC20 needs other joystick constants git-svn-id: svn://svn.cc65.org/cc65/trunk@1383 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/joystick.h b/include/joystick.h index 141c7533e..f541cd0b8 100644 --- a/include/joystick.h +++ b/include/joystick.h @@ -52,11 +52,19 @@ /* Result codes of the function. The actual code is a bitwise or * of one or more of the following values. */ -#define JOY_UP 0x01 -#define JOY_DOWN 0x02 -#define JOY_LEFT 0x04 -#define JOY_RIGHT 0x08 -#define JOY_FIRE 0x10 +#if defined(__VIC20__) +# define JOY_UP 0x04 +# define JOY_DOWN 0x08 +# define JOY_LEFT 0x10 +# define JOY_RIGHT 0x80 +# define JOY_FIRE 0x20 +#else +# define JOY_UP 0x01 +# define JOY_DOWN 0x02 +# define JOY_LEFT 0x04 +# define JOY_RIGHT 0x08 +# define JOY_FIRE 0x10 +#endif