1
0
Fork 0

Declare the init function of the joystick as restartable, so some of the dynamic settings work.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4076
This commit is contained in:
Peter Veenstra 2018-02-08 13:53:13 +00:00
parent 55603e3aa3
commit 06337c9b13

View file

@ -665,7 +665,7 @@ void DOSBOX_Init(void) {
secprop=control->AddSection_prop("joystick",&BIOS_Init,false);//done
secprop->AddInitFunction(&INT10_Init);
secprop->AddInitFunction(&MOUSE_Init); //Must be after int10 as it uses CurMode
secprop->AddInitFunction(&JOYSTICK_Init);
secprop->AddInitFunction(&JOYSTICK_Init,true);
const char* joytypes[] = { "auto", "2axis", "4axis", "4axis_2", "fcs", "ch", "none",0};
Pstring = secprop->Add_string("joysticktype",Property::Changeable::WhenIdle,"auto");
Pstring->Set_values(joytypes);