mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2025-02-16 20:39:15 +01:00
Add ability to reset joystick bindings
This commit is contained in:
parent
14af549037
commit
6d8fd6fc92
@ -118,6 +118,10 @@ public:
|
|||||||
panic("Classic: impossible selection %d", this->p_submenus[4].sel); break;
|
panic("Classic: impossible selection %d", this->p_submenus[4].sel); break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 11:
|
||||||
|
printf("Resetting joystick setup to defaults\n");
|
||||||
|
Gui::gui->popView();
|
||||||
|
return;
|
||||||
default:
|
default:
|
||||||
panic("Impossible menu option\n");
|
panic("Impossible menu option\n");
|
||||||
break;
|
break;
|
||||||
@ -206,6 +210,8 @@ public:
|
|||||||
this->hm[8] = this->addOne(this->hm[8], this->allocOne("Horiz: %s", stringToPtr_Classic("RAH")));
|
this->hm[8] = this->addOne(this->hm[8], this->allocOne("Horiz: %s", stringToPtr_Classic("RAH")));
|
||||||
this->hm[8] = this->addOne(this->hm[8], this->allocOne("Vert: %s", stringToPtr_Classic("RAV")));
|
this->hm[8] = this->addOne(this->hm[8], this->allocOne("Vert: %s", stringToPtr_Classic("RAV")));
|
||||||
|
|
||||||
|
this->hm[11] = this->addOne(this->hm[11], "Revert to defaults");
|
||||||
|
|
||||||
this->help->setHelpMessages(this->hm);
|
this->help->setHelpMessages(this->hm);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -386,7 +392,7 @@ private:
|
|||||||
|
|
||||||
HelpBox *help;
|
HelpBox *help;
|
||||||
int *cur_key;
|
int *cur_key;
|
||||||
const char **hm[10];
|
const char **hm[12];
|
||||||
};
|
};
|
||||||
|
|
||||||
void AnalogueBindListener::selectCallback(DialogueBox *which, int selected)
|
void AnalogueBindListener::selectCallback(DialogueBox *which, int selected)
|
||||||
|
@ -158,6 +158,8 @@ const char **bind_key_menu_messages = (const char*[]){
|
|||||||
/*07*/ "^|Horiz|Vert",
|
/*07*/ "^|Horiz|Vert",
|
||||||
/*08*/ "Classic(right analogue)",
|
/*08*/ "Classic(right analogue)",
|
||||||
/*09*/ "^|Horiz|Vert",
|
/*09*/ "^|Horiz|Vert",
|
||||||
|
/*10*/ " ",
|
||||||
|
/*11*/ "Reset to defaults",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user