Skip to content

Instantly share code, notes, and snippets.

@rygorous
Last active December 12, 2015 00:58
Embed
What would you like to do?
Why can't we all agree on the names of buttons on controllers?
// Template:
// [0] "controls: DPAD up/down=cursor up/down, DPAD left/right=selected column, <button_right>=go to graph mode,\n"
// [1] "<button_down>=toggle expand, <button_left>=toggle pause, <button_up>=toggle heatmap, shoulder L/R to switch Iggys, trigger L/R to switch modes"
// [2] "controls: <button_down>=toggle stacked graph, <button_left>=toggle pause, <button_right>=tree mode"
static const char *controller_help[3] =
{
#if defined(__RADPS3__)
"controls: DPAD up/down=cursor up/down, DPAD left/right=selected column, CIRCLE=go to graph mode,\n",
"CROSS=toggle expand, SQUARE=toggle pause, TRIANGLE=toggle heatmap, shoulder L/R to switch Iggys, trigger L/R to switch modes",
"controls: CROSS=toggle stacked graph, SQUARE=toggle pause, CIRCLE=tree mode",
#elif defined(__RADWII__) || defined(__RADWIIU__)
"controls: DPAD up/down=cursor up/down, DPAD left/right=selected column, A=go to graph mode,\n",
"B=toggle expand, Y=toggle pause, X=toggle heatmap, L/R to switch Iggys, ZL/ZR to switch modes",
"controls: B=toggle stacked graph, Y=toggle pause, A=tree mode",
#else // default to XInput-style layout
"controls: DPAD up/down=cursor up/down, DPAD left/right=selected column, B=go to graph mode,\n",
"A=toggle expand, X=toggle pause, Y=toggle heatmap, shoulder L/R to switch Iggys, trigger L/R to switch modes",
"controls: A=toggle stacked graph, X=toggle pause, B=tree mode",
#endif
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment