From 12154bdaa7fb08655a26275adaf06e75f1ec80fb Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 8 Aug 2002 12:28:11 +0000 Subject: [PATCH] VIC20 needs other joystick constants git-svn-id: svn://svn.cc65.org/cc65/trunk@1383 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/joystick.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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 -- 2.39.5