diff --git a/src/setup/mouse.c b/src/setup/mouse.c index e25cd99047..2965bde151 100644 --- a/src/setup/mouse.c +++ b/src/setup/mouse.c @@ -90,23 +90,23 @@ static void ConfigExtraButtons(TXT_UNCAST_ARG(widget), TXT_UNCAST_ARG(unused)) TXT_SetWindowHelpURL(window, WINDOW_HELP_URL); TXT_AddWidgets(window, - buttons_table = TXT_NewTable(2), + buttons_table = TXT_NewTable(4), NULL); - TXT_SetColumnWidths(buttons_table, 24, 5); + TXT_SetColumnWidths(buttons_table, 16, 11, 14, 10); - AddMouseControl(buttons_table, "Move backward", &mousebbackward); - AddMouseControl(buttons_table, "Use", &mousebuse); + AddMouseControl(buttons_table, "Move forward", &mousebforward); AddMouseControl(buttons_table, "Strafe left", &mousebstrafeleft); + AddMouseControl(buttons_table, "Move backward", &mousebbackward); AddMouseControl(buttons_table, "Strafe right", &mousebstraferight); + AddMouseControl(buttons_table, "Previous weapon", &mousebprevweapon); + AddMouseControl(buttons_table, "Strafe on", &mousebstrafe); + AddMouseControl(buttons_table, "Next weapon", &mousebnextweapon); if (gamemission == hexen || gamemission == strife) { AddMouseControl(buttons_table, "Jump", &mousebjump); } - - AddMouseControl(buttons_table, "Previous weapon", &mousebprevweapon); - AddMouseControl(buttons_table, "Next weapon", &mousebnextweapon); } void ConfigMouse(TXT_UNCAST_ARG(widget), void *user_data) @@ -145,8 +145,7 @@ void ConfigMouse(TXT_UNCAST_ARG(widget), void *user_data) NULL); AddMouseControl(window, "Fire/Attack", &mousebfire); - AddMouseControl(window, "Move forward", &mousebforward); - AddMouseControl(window, "Strafe on", &mousebstrafe); + AddMouseControl(window, "Use", &mousebuse); TXT_AddWidget(window, TXT_NewButton2("More controls...", ConfigExtraButtons, NULL)); diff --git a/src/setup/txt_mouseinput.c b/src/setup/txt_mouseinput.c index 21f7307255..f5a79cd051 100644 --- a/src/setup/txt_mouseinput.c +++ b/src/setup/txt_mouseinput.c @@ -26,7 +26,8 @@ #include "txt_utf8.h" #include "txt_window.h" -#define MOUSE_INPUT_WIDTH 8 +// eg. "BUTTON #10" +#define MOUSE_INPUT_WIDTH 10 static int MousePressCallback(txt_window_t *window, int x, int y, int b,