2013-07-06 04:37:13 +00:00
|
|
|
/*
|
2013-06-11 07:08:15 +00:00
|
|
|
* Apple // emulator for Linux: Configuration defines
|
|
|
|
*
|
|
|
|
* Copyright 1994 Alexander Jean-Claude Bottema
|
|
|
|
* Copyright 1995 Stephen Lee
|
|
|
|
* Copyright 1997, 1998 Aaron Culliney
|
|
|
|
* Copyright 1998, 1999, 2000 Michael Deutschmann
|
|
|
|
*
|
|
|
|
* This software package is subject to the GNU General Public License
|
2013-07-06 04:37:13 +00:00
|
|
|
* version 2 or later (your choice) as published by the Free Software
|
2013-06-11 07:08:15 +00:00
|
|
|
* Foundation.
|
|
|
|
*
|
2013-07-06 04:37:13 +00:00
|
|
|
* THERE ARE NO WARRANTIES WHATSOEVER.
|
2013-06-11 07:08:15 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PREFS_H
|
|
|
|
#define PREFS_H
|
|
|
|
|
2013-11-27 20:43:58 +00:00
|
|
|
#include "common.h"
|
|
|
|
|
2013-06-11 07:08:15 +00:00
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
|
2013-12-07 06:55:00 +00:00
|
|
|
typedef enum joystick_mode_t {
|
|
|
|
JOY_OFF = 0,
|
|
|
|
#ifdef KEYPAD_JOYSTICK
|
|
|
|
JOY_KPAD,
|
|
|
|
#endif
|
|
|
|
#ifdef PC_JOYSTICK
|
|
|
|
JOY_PCJOY,
|
|
|
|
#endif
|
|
|
|
NUM_JOYOPTS
|
|
|
|
} joystick_mode_t;
|
|
|
|
|
|
|
|
typedef enum color_mode_t {
|
|
|
|
COLOR_NONE = 0,
|
|
|
|
/*LAZY_COLOR, deprecated*/
|
|
|
|
COLOR,
|
|
|
|
/*LAZY_INTERP, deprecated*/
|
|
|
|
COLOR_INTERP,
|
|
|
|
NUM_COLOROPTS
|
|
|
|
} color_mode_t;
|
|
|
|
|
2013-07-06 04:37:13 +00:00
|
|
|
#define SYSSIZE 4096
|
2013-06-11 07:08:15 +00:00
|
|
|
extern char system_path[SYSSIZE];
|
2013-07-06 04:37:13 +00:00
|
|
|
#define DISKSIZE 4096
|
2013-06-11 07:08:15 +00:00
|
|
|
extern char disk_path[DISKSIZE];
|
|
|
|
|
|
|
|
extern int apple_mode; /* undocumented instructions or //e mode */
|
2013-12-07 06:55:00 +00:00
|
|
|
extern int sound_volume;
|
|
|
|
extern color_mode_t color_mode;
|
2013-06-11 07:08:15 +00:00
|
|
|
|
|
|
|
/* generic joystick settings */
|
2013-12-07 06:55:00 +00:00
|
|
|
extern joystick_mode_t joy_mode;
|
2013-12-28 21:54:26 +00:00
|
|
|
|
|
|
|
#ifdef KEYPAD_JOYSTICK
|
2013-06-11 07:08:15 +00:00
|
|
|
extern short joy_step;
|
2013-12-29 05:48:42 +00:00
|
|
|
extern uint8_t auto_recenter;
|
2013-12-28 21:54:26 +00:00
|
|
|
#endif
|
2013-06-11 07:08:15 +00:00
|
|
|
|
|
|
|
#ifdef PC_JOYSTICK
|
|
|
|
/* real joystick settings */
|
|
|
|
extern int js_center_x;
|
|
|
|
extern int js_center_y;
|
|
|
|
extern int js_max_x;
|
|
|
|
extern int js_max_y;
|
|
|
|
extern int js_min_x;
|
|
|
|
extern int js_min_y;
|
|
|
|
#endif /* PC_JOYSTICK */
|
|
|
|
|
|
|
|
/* functions in prefs.c */
|
|
|
|
extern void load_settings(void);
|
2013-11-27 20:43:58 +00:00
|
|
|
extern bool save_settings(void);
|
2013-06-11 07:08:15 +00:00
|
|
|
|
|
|
|
#endif /* !__ASSEMBLER__ */
|
|
|
|
|
|
|
|
/* values for apple_mode */
|
|
|
|
#define IIE_MODE 2
|
|
|
|
#define IIU_MODE 1
|
|
|
|
#define II_MODE 0
|
|
|
|
|
|
|
|
#endif /* PREFS_H */
|