2010-01-01 10:10:03 +01:00
|
|
|
#ifndef __MOCK_PREFS_HH__
|
|
|
|
#define __MOCK_PREFS_HH__
|
|
|
|
|
2010-01-01 10:30:05 +01:00
|
|
|
#include <string.h>
|
|
|
|
|
2010-01-02 17:00:00 +01:00
|
|
|
#define SPEED_95 30
|
|
|
|
#define SPEED_100 20
|
|
|
|
#define SPEED_110 18
|
|
|
|
|
2010-01-05 16:23:19 +01:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
/* ASCII values before these */
|
|
|
|
JOY_NONE = 0,
|
|
|
|
JOY_HORIZ = 256,
|
|
|
|
JOY_VERT = 258,
|
|
|
|
JOY_FIRE = 259,
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Insanely high, but the Wii has insanely many of these */
|
|
|
|
#define MAX_JOYSTICK_AXES 32
|
|
|
|
#define MAX_JOYSTICK_BUTTONS 32
|
2010-01-06 08:48:10 +01:00
|
|
|
#define MAX_JOYSTICK_HATS 8
|
2010-01-05 16:23:19 +01:00
|
|
|
|
2010-01-01 10:10:03 +01:00
|
|
|
class Prefs
|
|
|
|
{
|
2010-01-01 10:30:05 +01:00
|
|
|
public:
|
|
|
|
Prefs()
|
|
|
|
{
|
2010-01-05 16:23:19 +01:00
|
|
|
/* Set to NONE by default */
|
|
|
|
memset(this->JoystickAxes, 0, sizeof(this->JoystickAxes));
|
|
|
|
memset(this->JoystickButtons, 0, sizeof(this->JoystickButtons));
|
2010-01-06 08:48:10 +01:00
|
|
|
memset(this->JoystickHats, 0, sizeof(this->JoystickHats));
|
2010-01-05 16:23:19 +01:00
|
|
|
|
2010-01-01 10:30:05 +01:00
|
|
|
strcpy(this->NetworkName, "Unset name");
|
|
|
|
strcpy(this->NetworkServer, "play.c64-network.org");
|
|
|
|
this->NetworkPort = 46214;
|
2010-01-02 17:00:00 +01:00
|
|
|
|
|
|
|
this->Emul1541Proc = 0;
|
|
|
|
this->ShowLEDs = 0;
|
|
|
|
this->DisplayOption = 0;
|
|
|
|
this->MsPerFrame = SPEED_100;
|
2010-01-01 10:30:05 +01:00
|
|
|
}
|
|
|
|
|
2010-01-01 10:10:03 +01:00
|
|
|
char NetworkName[32];
|
|
|
|
char NetworkServer[128];
|
|
|
|
int NetworkPort;
|
2010-01-02 17:00:00 +01:00
|
|
|
int Emul1541Proc;
|
|
|
|
int ShowLEDs;
|
|
|
|
int DisplayOption;
|
|
|
|
unsigned int MsPerFrame;
|
2010-01-05 16:23:19 +01:00
|
|
|
|
|
|
|
/* This is borrowed from UAE */
|
|
|
|
int JoystickAxes[2][MAX_JOYSTICK_AXES];
|
2010-01-06 08:48:10 +01:00
|
|
|
int JoystickHats[2][MAX_JOYSTICK_HATS];
|
2010-01-05 16:23:19 +01:00
|
|
|
int JoystickButtons[2][MAX_JOYSTICK_BUTTONS];
|
2010-01-01 10:10:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __MOCK_PREFS_HH__ */
|