AppleWin/source/frontends/qapple/options.h
Andrea Odetti 7037582907 Allow to turn the circle range of a gamepad to a square (as the Apple ][).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-17 19:19:46 +01:00

59 lines
1.1 KiB
C++

#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#include "StdAfx.h"
#include "Card.h"
#include "Common.h"
#include "preferences.h"
class GlobalOptions
{
public:
GlobalOptions(); // empty, uninitialised
static GlobalOptions fromQSettings();
QString screenshotTemplate;
QString gamepadName;
bool gamepadSquaring;
int slot0Card;
int ramWorksMemorySize;
int msGap;
int msFullSpeed;
int audioLatency;
void setData(const GlobalOptions & data);
};
struct PreferenceData
{
GlobalOptions options;
eApple2Type apple2Type;
SS_CARDTYPE cardInSlot4;
SS_CARDTYPE cardInSlot5;
bool hdInSlot7;
bool hz50;
bool enhancedSpeed;
int videoType;
bool scanLines;
bool verticalBlend;
int speakerVolume;
int mockingboardVolume;
std::vector<QString> disks;
std::vector<QString> hds;
QColor monochromeColor;
QString saveState;
};
void getAppleWinPreferences(PreferenceData & data);
void setAppleWinPreferences(const PreferenceData & currentData, const PreferenceData & newData);
#endif // CONFIGURATION_H