Commit 1b66150f authored by Aloshi's avatar Aloshi

Help prompts are now sorted, to the order [dpad] [face buttons] [start/select].

parent e5bada7f
......@@ -241,5 +241,30 @@ void Window::setHelpPrompts(const std::vector<HelpPrompt>& prompts)
// sort prompts so it goes [dpad_all] [dpad_u/d] [dpad_l/r] [a/b/x/y/l/r] [start/select]
std::sort(addPrompts.begin(), addPrompts.end(), [](const HelpPrompt& a, const HelpPrompt& b) -> bool {
static const char* map[] = {
"a", "b", "x", "y", "l", "r",
"start", "select",
int i = 0;
while(map[i] != NULL)
if(a.first == map[i])
return true;
else if(b.first == map[i])
return false;
return true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment