Fixed some incorrect Pandora platform options and references
This commit is contained in:
parent
f12b298223
commit
66a2956a76
13 changed files with 82 additions and 111 deletions
|
@ -1125,12 +1125,12 @@ void cfgfile_save_options (struct zfile *f, struct uae_prefs *p, int type)
|
||||||
_stprintf (tmp1, _T("joyport%d_mode"), i);
|
_stprintf (tmp1, _T("joyport%d_mode"), i);
|
||||||
cfgfile_dwrite_str (f, tmp1, joyportmodes[jp->mode]);
|
cfgfile_dwrite_str (f, tmp1, joyportmodes[jp->mode]);
|
||||||
}
|
}
|
||||||
#ifndef PANDORA
|
|
||||||
if (jp->mousemap > 0) {
|
if (jp->mousemap > 0) {
|
||||||
_stprintf (tmp1, _T("joyport%d_mousemap"), i);
|
_stprintf (tmp1, _T("joyport%d_mousemap"), i);
|
||||||
cfgfile_dwrite_str (f, tmp1, mousemaps[jp->mousemap]);
|
cfgfile_dwrite_str (f, tmp1, mousemaps[jp->mousemap]);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if (jp->idc.name[0]) {
|
if (jp->idc.name[0]) {
|
||||||
_stprintf (tmp1, _T("joyport%d_friendlyname"), i);
|
_stprintf (tmp1, _T("joyport%d_friendlyname"), i);
|
||||||
cfgfile_write (f, tmp1, jp->idc.name);
|
cfgfile_write (f, tmp1, jp->idc.name);
|
||||||
|
@ -1147,7 +1147,6 @@ void cfgfile_save_options (struct zfile *f, struct uae_prefs *p, int type)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef PANDORA
|
|
||||||
// custom options SAVING
|
// custom options SAVING
|
||||||
if (i < 4 ) {
|
if (i < 4 ) {
|
||||||
|
|
||||||
|
@ -1201,7 +1200,7 @@ void cfgfile_save_options (struct zfile *f, struct uae_prefs *p, int type)
|
||||||
cfgfile_dwrite_str (f, tmp1, tmp2); }
|
cfgfile_dwrite_str (f, tmp1, tmp2); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
cfg_write (_T("; "), f);
|
cfg_write (_T("; "), f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1945,10 +1944,7 @@ static int cfgfile_parse_host(struct uae_prefs *p, TCHAR *option, TCHAR *value)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef PANDORA
|
|
||||||
// custom options LOADING
|
// custom options LOADING
|
||||||
|
|
||||||
|
|
||||||
for (int i = 0; i<4; ++i) // Loop 1 ... all 4 joyports
|
for (int i = 0; i<4; ++i) // Loop 1 ... all 4 joyports
|
||||||
{
|
{
|
||||||
struct joypad_map_layout tempcustom = {};
|
struct joypad_map_layout tempcustom = {};
|
||||||
|
@ -2000,9 +1996,6 @@ static int cfgfile_parse_host(struct uae_prefs *p, TCHAR *option, TCHAR *value)
|
||||||
} // close loop 2
|
} // close loop 2
|
||||||
} // close loop 1
|
} // close loop 1
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
for (tmpp = option; *tmpp != '\0'; tmpp++)
|
for (tmpp = option; *tmpp != '\0'; tmpp++)
|
||||||
if (_istupper(*tmpp))
|
if (_istupper(*tmpp))
|
||||||
*tmpp = _totlower(*tmpp);
|
*tmpp = _totlower(*tmpp);
|
||||||
|
@ -2257,13 +2250,10 @@ static int cfgfile_parse_host(struct uae_prefs *p, TCHAR *option, TCHAR *value)
|
||||||
cfgfile_strval(option, value, _T("joyport3_autofire"), &p->jports[3].autofire, joyaf, 0))
|
cfgfile_strval(option, value, _T("joyport3_autofire"), &p->jports[3].autofire, joyaf, 0))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|
||||||
#ifndef PANDORA
|
|
||||||
if (cfgfile_strval(option, value, _T("joyport0_mousemap"), &p->jports[0].mousemap, mousemaps, 0))
|
if (cfgfile_strval(option, value, _T("joyport0_mousemap"), &p->jports[0].mousemap, mousemaps, 0))
|
||||||
return 1;
|
return 1;
|
||||||
if (cfgfile_strval(option, value, _T("joyport1_mousemap"), &p->jports[1].mousemap, mousemaps, 0))
|
if (cfgfile_strval(option, value, _T("joyport1_mousemap"), &p->jports[1].mousemap, mousemaps, 0))
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
|
||||||
|
|
||||||
// shared version
|
// shared version
|
||||||
if (cfgfile_yesno(option, value, _T("joyport0keyboardoverride"), &vb) ||
|
if (cfgfile_yesno(option, value, _T("joyport0keyboardoverride"), &vb) ||
|
||||||
|
|
|
@ -164,13 +164,8 @@ enum aks {
|
||||||
AKS_QUALIFIER5, AKS_QUALIFIER6, AKS_QUALIFIER7, AKS_QUALIFIER8,
|
AKS_QUALIFIER5, AKS_QUALIFIER6, AKS_QUALIFIER7, AKS_QUALIFIER8,
|
||||||
AKS_QUALIFIER_SPECIAL, AKS_QUALIFIER_SHIFT, AKS_QUALIFIER_CONTROL,
|
AKS_QUALIFIER_SPECIAL, AKS_QUALIFIER_SHIFT, AKS_QUALIFIER_CONTROL,
|
||||||
AKS_QUALIFIER_ALT, AKS_QUALIFIER_WIN,
|
AKS_QUALIFIER_ALT, AKS_QUALIFIER_WIN,
|
||||||
|
AKS_MOUSEMAP_PORT0_LEFT, AKS_MOUSEMAP_PORT0_RIGHT, AKS_MOUSEMAP_PORT1_LEFT, AKS_MOUSEMAP_PORT1_RIGHT,
|
||||||
#ifndef PANDORA
|
AKS_MOUSE_SPEED_DOWN, AKS_MOUSE_SPEED_UP
|
||||||
AKS_MOUSEMAP_PORT0_LEFT, AKS_MOUSEMAP_PORT0_RIGHT, AKS_MOUSEMAP_PORT1_LEFT, AKS_MOUSEMAP_PORT1_RIGHT,
|
|
||||||
#endif
|
|
||||||
AKS_MOUSE_SPEED_DOWN, AKS_MOUSE_SPEED_UP
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define AKS_FIRST AKS_ENTERGUI
|
#define AKS_FIRST AKS_ENTERGUI
|
||||||
|
|
|
@ -425,9 +425,9 @@ struct uae_prefs {
|
||||||
TCHAR quit_amiberry[256];
|
TCHAR quit_amiberry[256];
|
||||||
|
|
||||||
#ifdef PANDORA
|
#ifdef PANDORA
|
||||||
int pandora_cpu_speed;
|
int cpu_speed;
|
||||||
int pandora_hide_idle_led;
|
int hide_idle_led;
|
||||||
int pandora_tapDelay;
|
int tapDelay;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* input */
|
/* input */
|
||||||
|
|
|
@ -2574,7 +2574,7 @@ int i;
|
||||||
int num_elements;
|
int num_elements;
|
||||||
|
|
||||||
|
|
||||||
static bool inputdevice_handle_inputcode2 (int code, int state)
|
static bool inputdevice_handle_inputcode2(int code, int state)
|
||||||
{
|
{
|
||||||
if (code == 0)
|
if (code == 0)
|
||||||
goto end;
|
goto end;
|
||||||
|
@ -2582,66 +2582,62 @@ static bool inputdevice_handle_inputcode2 (int code, int state)
|
||||||
switch (code)
|
switch (code)
|
||||||
{
|
{
|
||||||
case AKS_ENTERGUI:
|
case AKS_ENTERGUI:
|
||||||
gui_display (-1);
|
gui_display(-1);
|
||||||
break;
|
break;
|
||||||
#ifdef ACTION_REPLAY
|
#ifdef ACTION_REPLAY
|
||||||
case AKS_FREEZEBUTTON:
|
case AKS_FREEZEBUTTON:
|
||||||
action_replay_freeze ();
|
action_replay_freeze();
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case AKS_QUIT:
|
case AKS_QUIT:
|
||||||
uae_quit ();
|
uae_quit();
|
||||||
break;
|
break;
|
||||||
case AKS_SOFTRESET:
|
case AKS_SOFTRESET:
|
||||||
uae_reset (0, 0);
|
uae_reset(0, 0);
|
||||||
break;
|
break;
|
||||||
case AKS_HARDRESET:
|
case AKS_HARDRESET:
|
||||||
uae_reset (1, 1);
|
uae_reset(1, 1);
|
||||||
break;
|
break;
|
||||||
#ifndef PANDORA
|
|
||||||
case AKS_MOUSEMAP_PORT0_LEFT:
|
case AKS_MOUSEMAP_PORT0_LEFT:
|
||||||
((changed_prefs.jports[0].mousemap) ^= 1 << 0);
|
((changed_prefs.jports[0].mousemap) ^= 1 << 0);
|
||||||
inputdevice_updateconfig (&changed_prefs, &currprefs);
|
inputdevice_updateconfig(&changed_prefs, &currprefs);
|
||||||
break;
|
break;
|
||||||
case AKS_MOUSEMAP_PORT0_RIGHT:
|
case AKS_MOUSEMAP_PORT0_RIGHT:
|
||||||
((changed_prefs.jports[0].mousemap) ^= 1 << 1);
|
((changed_prefs.jports[0].mousemap) ^= 1 << 1);
|
||||||
inputdevice_updateconfig (&changed_prefs, &currprefs);
|
inputdevice_updateconfig(&changed_prefs, &currprefs);
|
||||||
break;
|
break;
|
||||||
case AKS_MOUSEMAP_PORT1_LEFT:
|
case AKS_MOUSEMAP_PORT1_LEFT:
|
||||||
((changed_prefs.jports[1].mousemap) ^= 1 << 0);
|
((changed_prefs.jports[1].mousemap) ^= 1 << 0);
|
||||||
inputdevice_updateconfig (&changed_prefs, &currprefs);
|
inputdevice_updateconfig(&changed_prefs, &currprefs);
|
||||||
break;
|
break;
|
||||||
case AKS_MOUSEMAP_PORT1_RIGHT:
|
case AKS_MOUSEMAP_PORT1_RIGHT:
|
||||||
((changed_prefs.jports[1].mousemap) ^= 1 << 1);
|
((changed_prefs.jports[1].mousemap) ^= 1 << 1);
|
||||||
inputdevice_updateconfig (&changed_prefs, &currprefs);
|
inputdevice_updateconfig(&changed_prefs, &currprefs);
|
||||||
break;
|
break;
|
||||||
#endif
|
|
||||||
case AKS_MOUSE_SPEED_DOWN:
|
case AKS_MOUSE_SPEED_DOWN:
|
||||||
|
num_elements = sizeof(mousespeed_values) / sizeof(mousespeed_values[0]);
|
||||||
num_elements = sizeof(mousespeed_values) / sizeof( mousespeed_values[0] );
|
mousespeed = currprefs.input_joymouse_multiplier;
|
||||||
mousespeed = currprefs.input_joymouse_multiplier;
|
|
||||||
|
i = find_in_array(mousespeed_values, num_elements, mousespeed);
|
||||||
i = find_in_array(mousespeed_values, num_elements, mousespeed);
|
i = i - 1;
|
||||||
i = i - 1;
|
if (i < 0) { i = num_elements - 1; }
|
||||||
if (i < 0 ) { i = num_elements - 1 ;}
|
changed_prefs.input_joymouse_multiplier = mousespeed_values[i];
|
||||||
changed_prefs.input_joymouse_multiplier = mousespeed_values[i];
|
inputdevice_updateconfig(&changed_prefs, &currprefs);
|
||||||
inputdevice_updateconfig (&changed_prefs, &currprefs);
|
break;
|
||||||
|
|
||||||
break;
|
case AKS_MOUSE_SPEED_UP:
|
||||||
|
num_elements = sizeof(mousespeed_values) / sizeof(mousespeed_values[0]);
|
||||||
case AKS_MOUSE_SPEED_UP:
|
mousespeed = currprefs.input_joymouse_multiplier;
|
||||||
|
|
||||||
num_elements = sizeof(mousespeed_values) / sizeof( mousespeed_values[0] );
|
i = find_in_array(mousespeed_values, num_elements, mousespeed);
|
||||||
mousespeed = currprefs.input_joymouse_multiplier;
|
i = i + 1;
|
||||||
|
if (i >= num_elements) { i = 0; }
|
||||||
i = find_in_array(mousespeed_values, num_elements, mousespeed);
|
changed_prefs.input_joymouse_multiplier = mousespeed_values[i];
|
||||||
i = i + 1;
|
inputdevice_updateconfig(&changed_prefs, &currprefs);
|
||||||
if (i >= num_elements ) { i =0 ;}
|
break;
|
||||||
changed_prefs.input_joymouse_multiplier = mousespeed_values[i];
|
}
|
||||||
inputdevice_updateconfig (&changed_prefs, &currprefs);
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
end:
|
end:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -336,12 +336,10 @@ DEFEVENT(SPC_INPUT_CONFIG2,_T("Select Input Configuration #2"),AM_K,0,0,AKS_INPU
|
||||||
DEFEVENT(SPC_INPUT_CONFIG3,_T("Select Input Configuration #3"),AM_K,0,0,AKS_INPUT_CONFIG_3)
|
DEFEVENT(SPC_INPUT_CONFIG3,_T("Select Input Configuration #3"),AM_K,0,0,AKS_INPUT_CONFIG_3)
|
||||||
DEFEVENT(SPC_INPUT_CONFIG4,_T("Select GamePorts Input Configuration"),AM_K,0,0,AKS_INPUT_CONFIG_4)
|
DEFEVENT(SPC_INPUT_CONFIG4,_T("Select GamePorts Input Configuration"),AM_K,0,0,AKS_INPUT_CONFIG_4)
|
||||||
|
|
||||||
#ifndef PANDORA
|
|
||||||
DEFEVENT(SPC_MOUSEMAP_PORT0_LEFT,_T("Mouse Toggle P0 (First Axis)"),AM_K,0,0,AKS_MOUSEMAP_PORT0_LEFT)
|
DEFEVENT(SPC_MOUSEMAP_PORT0_LEFT,_T("Mouse Toggle P0 (First Axis)"),AM_K,0,0,AKS_MOUSEMAP_PORT0_LEFT)
|
||||||
DEFEVENT(SPC_MOUSEMAP_PORT0_RIGHT,_T("Mouse Toggle P0 (Second Axis)"),AM_K,0,0,AKS_MOUSEMAP_PORT0_RIGHT)
|
DEFEVENT(SPC_MOUSEMAP_PORT0_RIGHT,_T("Mouse Toggle P0 (Second Axis)"),AM_K,0,0,AKS_MOUSEMAP_PORT0_RIGHT)
|
||||||
DEFEVENT(SPC_MOUSEMAP_PORT1_LEFT,_T("Mouse Toggle P1 (First Axis)"),AM_K,0,0,AKS_MOUSEMAP_PORT1_LEFT)
|
DEFEVENT(SPC_MOUSEMAP_PORT1_LEFT,_T("Mouse Toggle P1 (First Axis)"),AM_K,0,0,AKS_MOUSEMAP_PORT1_LEFT)
|
||||||
DEFEVENT(SPC_MOUSEMAP_PORT1_RIGHT,_T("Mouse Toggle P1 (Second Axis)"),AM_K,0,0,AKS_MOUSEMAP_PORT1_RIGHT)
|
DEFEVENT(SPC_MOUSEMAP_PORT1_RIGHT,_T("Mouse Toggle P1 (Second Axis)"),AM_K,0,0,AKS_MOUSEMAP_PORT1_RIGHT)
|
||||||
#endif
|
|
||||||
|
|
||||||
DEFEVENT(SPC_MOUSE_SPEED_UP,_T("Mouse Speed Up"),AM_K,0,0,AKS_MOUSE_SPEED_UP)
|
DEFEVENT(SPC_MOUSE_SPEED_UP,_T("Mouse Speed Up"),AM_K,0,0,AKS_MOUSE_SPEED_UP)
|
||||||
DEFEVENT(SPC_MOUSE_SPEED_DOWN,_T("Mouse Speed Down"),AM_K,0,0,AKS_MOUSE_SPEED_DOWN)
|
DEFEVENT(SPC_MOUSE_SPEED_DOWN,_T("Mouse Speed Down"),AM_K,0,0,AKS_MOUSE_SPEED_DOWN)
|
||||||
|
|
|
@ -235,9 +235,9 @@ void target_default_options(struct uae_prefs* p, int type)
|
||||||
p->gfx_size.width = 320;
|
p->gfx_size.width = 320;
|
||||||
p->gfx_size.height = 240;
|
p->gfx_size.height = 240;
|
||||||
p->gfx_resolution = RES_LORES;
|
p->gfx_resolution = RES_LORES;
|
||||||
p->pandora_cpu_speed = defaultCpuSpeed;
|
p->cpu_speed = defaultCpuSpeed;
|
||||||
p->pandora_hide_idle_led = 0;
|
p->hide_idle_led = 0;
|
||||||
p->pandora_tapDelay = 10;
|
p->tapDelay = 10;
|
||||||
#endif //PANDORA
|
#endif //PANDORA
|
||||||
|
|
||||||
#ifdef PANDORA
|
#ifdef PANDORA
|
||||||
|
@ -940,7 +940,7 @@ void resetCpuSpeed(void)
|
||||||
if(cpuSpeedChanged)
|
if(cpuSpeedChanged)
|
||||||
{
|
{
|
||||||
lastCpuSpeed = defaultCpuSpeed - 10;
|
lastCpuSpeed = defaultCpuSpeed - 10;
|
||||||
currprefs.pandora_cpu_speed = changed_prefs.pandora_cpu_speed = defaultCpuSpeed;
|
currprefs.cpu_speed = changed_prefs.cpu_speed = defaultCpuSpeed;
|
||||||
setCpuSpeed();
|
setCpuSpeed();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -532,13 +532,11 @@ void gui_display(int shortcut)
|
||||||
|
|
||||||
void moveVertical(int value)
|
void moveVertical(int value)
|
||||||
{
|
{
|
||||||
#ifdef PANDORA
|
changed_prefs.vertical_offset += value;
|
||||||
changed_prefs.pandora_vertical_offset += value;
|
if(changed_prefs.vertical_offset < -16 + OFFSET_Y_ADJUST)
|
||||||
if(changed_prefs.pandora_vertical_offset < -16 + OFFSET_Y_ADJUST)
|
changed_prefs.vertical_offset = -16 + OFFSET_Y_ADJUST;
|
||||||
changed_prefs.pandora_vertical_offset = -16 + OFFSET_Y_ADJUST;
|
else if(changed_prefs.vertical_offset > 16 + OFFSET_Y_ADJUST)
|
||||||
else if(changed_prefs.pandora_vertical_offset > 16 + OFFSET_Y_ADJUST)
|
changed_prefs.vertical_offset = 16 + OFFSET_Y_ADJUST;
|
||||||
changed_prefs.pandora_vertical_offset = 16 + OFFSET_Y_ADJUST;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void gui_led(int led, int on)
|
void gui_led(int led, int on)
|
||||||
|
|
|
@ -192,9 +192,7 @@ static void parse_clip(struct uae_prefs* p, xmlNode* node)
|
||||||
if (attr != nullptr)
|
if (attr != nullptr)
|
||||||
{
|
{
|
||||||
top = atoi(reinterpret_cast<const char *>(attr)) / 2;
|
top = atoi(reinterpret_cast<const char *>(attr)) / 2;
|
||||||
#ifdef PANDORA
|
p->vertical_offset = top - 41 + OFFSET_Y_ADJUST;
|
||||||
p->pandora_vertical_offset = top - 41 + OFFSET_Y_ADJUST;
|
|
||||||
#endif //PANDORA
|
|
||||||
xmlFree(attr);
|
xmlFree(attr);
|
||||||
}
|
}
|
||||||
attr = xmlGetProp(curr_node, reinterpret_cast<const xmlChar *>("width"));
|
attr = xmlGetProp(curr_node, reinterpret_cast<const xmlChar *>("width"));
|
||||||
|
|
|
@ -287,14 +287,12 @@ static NavigationMap navMap[] =
|
||||||
#ifdef PANDORA
|
#ifdef PANDORA
|
||||||
{ "StatusLine", "Miscellaneous", "Miscellaneous", "MasterWP", "HideIdle" },
|
{ "StatusLine", "Miscellaneous", "Miscellaneous", "MasterWP", "HideIdle" },
|
||||||
{ "HideIdle", "Miscellaneous", "Miscellaneous", "StatusLine", "ShowGUI" },
|
{ "HideIdle", "Miscellaneous", "Miscellaneous", "StatusLine", "ShowGUI" },
|
||||||
|
{ "ShowGUI", "Miscellaneous", "Miscellaneous", "HideIdle", "PandSpeed" },
|
||||||
{ "ShowGUI", "Miscellaneous", "Miscellaneous", "HideIdle", "PandSpeed" },
|
{ "PandSpeed", "", "", "ShowGUI", "BSDSocket" },
|
||||||
{ "PandSpeed", "", "", "ShowGUI", "BSDSocket" },
|
{ "BSDSocket", "Miscellaneous", "Miscellaneous", "PandSpeed", "MasterWP" },
|
||||||
{ "BSDSocket", "Miscellaneous", "Miscellaneous", "PandSpeed", "MasterWP" },
|
{ "MasterWP", "Miscellaneous", "Miscellaneous", "BSDSocket", "StatusLine" },
|
||||||
{ "MasterWP", "Miscellaneous", "Miscellaneous", "BSDSocket", "StatusLine" },
|
{ "OpenGUI", "Miscellaneous", "KeyForQuit", "MasterWP", "StatusLine" },
|
||||||
|
{ "KeyForQuit", "OpenGUI", "Miscellaneous", "MasterWP", "StatusLine" },
|
||||||
{ "KeyForMenu", "Miscellaneous", "KeyForQuit", "MasterWP", "StatusLine" },
|
|
||||||
{ "KeyForQuit", "KeyForMenu", "Miscellaneous", "MasterWP", "StatusLine" },
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
{ "StatusLine", "Miscellaneous", "RetroArchQuit", "scrolllock", "HideIdle" },
|
{ "StatusLine", "Miscellaneous", "RetroArchQuit", "scrolllock", "HideIdle" },
|
||||||
|
|
|
@ -288,11 +288,11 @@ public:
|
||||||
else if (actionEvent.getSource() == cboTapDelay)
|
else if (actionEvent.getSource() == cboTapDelay)
|
||||||
{
|
{
|
||||||
if (cboTapDelay->getSelected() == 0)
|
if (cboTapDelay->getSelected() == 0)
|
||||||
changed_prefs.pandora_tapDelay = 10;
|
changed_prefs.tapDelay = 10;
|
||||||
else if (cboTapDelay->getSelected() == 1)
|
else if (cboTapDelay->getSelected() == 1)
|
||||||
changed_prefs.pandora_tapDelay = 5;
|
changed_prefs.tapDelay = 5;
|
||||||
else
|
else
|
||||||
changed_prefs.pandora_tapDelay = 2;
|
changed_prefs.tapDelay = 2;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
else if (actionEvent.getSource() == chkMouseHack)
|
else if (actionEvent.getSource() == chkMouseHack)
|
||||||
|
@ -685,9 +685,9 @@ void RefreshPanelInput()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef PANDORA
|
#ifdef PANDORA
|
||||||
if (changed_prefs.pandora_tapDelay == 10)
|
if (changed_prefs.tapDelay == 10)
|
||||||
cboTapDelay->setSelected(0);
|
cboTapDelay->setSelected(0);
|
||||||
else if (changed_prefs.pandora_tapDelay == 5)
|
else if (changed_prefs.tapDelay == 5)
|
||||||
cboTapDelay->setSelected(1);
|
cboTapDelay->setSelected(1);
|
||||||
else
|
else
|
||||||
cboTapDelay->setSelected(2);
|
cboTapDelay->setSelected(2);
|
||||||
|
|
|
@ -139,9 +139,9 @@ public:
|
||||||
{
|
{
|
||||||
int newspeed = (int)sldPandoraSpeed->getValue();
|
int newspeed = (int)sldPandoraSpeed->getValue();
|
||||||
newspeed = newspeed - (newspeed % 20);
|
newspeed = newspeed - (newspeed % 20);
|
||||||
if (changed_prefs.pandora_cpu_speed != newspeed)
|
if (changed_prefs.cpu_speed != newspeed)
|
||||||
{
|
{
|
||||||
changed_prefs.pandora_cpu_speed = newspeed;
|
changed_prefs.cpu_speed = newspeed;
|
||||||
RefreshPanelMisc();
|
RefreshPanelMisc();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -338,7 +338,7 @@ void RefreshPanelMisc()
|
||||||
{
|
{
|
||||||
chkStatusLine->setSelected(changed_prefs.leds_on_screen);
|
chkStatusLine->setSelected(changed_prefs.leds_on_screen);
|
||||||
#ifdef PANDORA
|
#ifdef PANDORA
|
||||||
chkHideIdleLed->setSelected(changed_prefs.pandora_hide_idle_led);
|
chkHideIdleLed->setSelected(changed_prefs.hide_idle_led);
|
||||||
#endif
|
#endif
|
||||||
chkShowGUI->setSelected(changed_prefs.start_gui);
|
chkShowGUI->setSelected(changed_prefs.start_gui);
|
||||||
|
|
||||||
|
@ -347,8 +347,8 @@ void RefreshPanelMisc()
|
||||||
chkRetroArchReset->setSelected(changed_prefs.use_retroarch_reset);
|
chkRetroArchReset->setSelected(changed_prefs.use_retroarch_reset);
|
||||||
//chkRetroArchSavestate->setSelected(changed_prefs.use_retroarch_statebuttons);
|
//chkRetroArchSavestate->setSelected(changed_prefs.use_retroarch_statebuttons);
|
||||||
#ifdef PANDORA
|
#ifdef PANDORA
|
||||||
sldPandoraSpeed->setValue(changed_prefs.pandora_cpu_speed);
|
sldPandoraSpeed->setValue(changed_prefs.cpu_speed);
|
||||||
snprintf(tmp, 20, "%d MHz", changed_prefs.pandora_cpu_speed);
|
snprintf(tmp, 20, "%d MHz", changed_prefs.cpu_speed);
|
||||||
lblPandoraSpeedInfo->setCaption(tmp);
|
lblPandoraSpeedInfo->setCaption(tmp);
|
||||||
#endif
|
#endif
|
||||||
chkBSDSocket->setSelected(changed_prefs.socket_emu);
|
chkBSDSocket->setSelected(changed_prefs.socket_emu);
|
||||||
|
|
|
@ -120,12 +120,10 @@ void ExitPanelInput(void);
|
||||||
void RefreshPanelInput(void);
|
void RefreshPanelInput(void);
|
||||||
bool HelpPanelInput(std::vector<std::string> &helptext);
|
bool HelpPanelInput(std::vector<std::string> &helptext);
|
||||||
|
|
||||||
#ifndef PANDORA
|
|
||||||
void InitPanelCustom(const struct _ConfigCategory& category);
|
void InitPanelCustom(const struct _ConfigCategory& category);
|
||||||
void ExitPanelCustom(void);
|
void ExitPanelCustom(void);
|
||||||
void RefreshPanelCustom(void);
|
void RefreshPanelCustom(void);
|
||||||
bool HelpPanelCustom(std::vector<std::string> &helptext);
|
bool HelpPanelCustom(std::vector<std::string> &helptext);
|
||||||
#endif
|
|
||||||
|
|
||||||
void InitPanelMisc(const struct _ConfigCategory& category);
|
void InitPanelMisc(const struct _ConfigCategory& category);
|
||||||
void ExitPanelMisc(void);
|
void ExitPanelMisc(void);
|
||||||
|
|
|
@ -67,7 +67,7 @@ void draw_status_line_single(uae_u8 *buf, int y, int totalwidth)
|
||||||
if(nr_units() < 1)
|
if(nr_units() < 1)
|
||||||
x += TD_WIDTH;
|
x += TD_WIDTH;
|
||||||
#ifdef PANDORA
|
#ifdef PANDORA
|
||||||
if(currprefs.pandora_hide_idle_led)
|
if(currprefs.hide_idle_led)
|
||||||
x += TD_WIDTH;
|
x += TD_WIDTH;
|
||||||
#endif
|
#endif
|
||||||
if(picasso_on)
|
if(picasso_on)
|
||||||
|
@ -76,7 +76,7 @@ void draw_status_line_single(uae_u8 *buf, int y, int totalwidth)
|
||||||
memset (buf + (x - 4) * gfxvidinfo.drawbuffer.pixbytes, 0, (gfxvidinfo.drawbuffer.outwidth - x + 4) * gfxvidinfo.drawbuffer.pixbytes);
|
memset (buf + (x - 4) * gfxvidinfo.drawbuffer.pixbytes, 0, (gfxvidinfo.drawbuffer.outwidth - x + 4) * gfxvidinfo.drawbuffer.pixbytes);
|
||||||
|
|
||||||
#ifdef PANDORA
|
#ifdef PANDORA
|
||||||
for (led = (currprefs.pandora_hide_idle_led == 0) ? -2 : -1; led < (currprefs.nr_floppies+1); led++) {
|
for (led = (currprefs.hide_idle_led == 0) ? -2 : -1; led < (currprefs.nr_floppies+1); led++) {
|
||||||
#else
|
#else
|
||||||
for (led = -2; led < (currprefs.nr_floppies + 1); led++) {
|
for (led = -2; led < (currprefs.nr_floppies + 1); led++) {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue