diff --git a/desktop_version/fonts/buttons_10x10.fontmeta b/desktop_version/fonts/buttons_10x10.fontmeta index 7dde371c382..53bddfe1a25 100644 --- a/desktop_version/fonts/buttons_10x10.fontmeta +++ b/desktop_version/fonts/buttons_10x10.fontmeta @@ -5,9 +5,9 @@ 10 1 - + - + diff --git a/desktop_version/fonts/buttons_10x10.png b/desktop_version/fonts/buttons_10x10.png index 4df5284d7c4..7005c75bf48 100644 Binary files a/desktop_version/fonts/buttons_10x10.png and b/desktop_version/fonts/buttons_10x10.png differ diff --git a/desktop_version/fonts/buttons_12x12.fontmeta b/desktop_version/fonts/buttons_12x12.fontmeta index ccfe3f0afb6..92a89ec5785 100644 --- a/desktop_version/fonts/buttons_12x12.fontmeta +++ b/desktop_version/fonts/buttons_12x12.fontmeta @@ -5,9 +5,9 @@ 12 1 - + - + diff --git a/desktop_version/fonts/buttons_12x12.png b/desktop_version/fonts/buttons_12x12.png index f2184484fca..4f305ada4f9 100644 Binary files a/desktop_version/fonts/buttons_12x12.png and b/desktop_version/fonts/buttons_12x12.png differ diff --git a/desktop_version/fonts/buttons_8x8.fontmeta b/desktop_version/fonts/buttons_8x8.fontmeta index 60e2e566767..8c174d60715 100644 --- a/desktop_version/fonts/buttons_8x8.fontmeta +++ b/desktop_version/fonts/buttons_8x8.fontmeta @@ -5,9 +5,9 @@ 8 1 - + - + diff --git a/desktop_version/fonts/buttons_8x8.png b/desktop_version/fonts/buttons_8x8.png index a3750e412fb..c7a47b9f112 100644 Binary files a/desktop_version/fonts/buttons_8x8.png and b/desktop_version/fonts/buttons_8x8.png differ diff --git a/desktop_version/src/ButtonGlyphs.cpp b/desktop_version/src/ButtonGlyphs.cpp index 5317170819d..d32f4edc4c2 100644 --- a/desktop_version/src/ButtonGlyphs.cpp +++ b/desktop_version/src/ButtonGlyphs.cpp @@ -71,6 +71,13 @@ typedef enum GLYPH_NINTENDO_GAMECUBE_R, GLYPH_NINTENDO_GAMECUBE_Z, + GLYPH_NINTENDO_WII_A, + GLYPH_NINTENDO_WII_B, + GLYPH_NINTENDO_WII_1, + GLYPH_NINTENDO_WII_2, + GLYPH_NINTENDO_WII_MINUS, + GLYPH_NINTENDO_WII_PLUS, + GLYPH_TOTAL } ButtonGlyphKey; @@ -89,6 +96,7 @@ typedef enum /* Added after 2.4 */ LAYOUT_GAMECUBE, + LAYOUT_WII, LAYOUT_TOTAL } @@ -152,7 +160,14 @@ static const char* glyph_layout[LAYOUT_TOTAL][SDL_CONTROLLER_BUTTON_RIGHTSHOULDE glyph[GLYPH_UNKNOWN], glyph[GLYPH_UNKNOWN], "START", glyph[GLYPH_UNKNOWN], glyph[GLYPH_UNKNOWN], glyph[GLYPH_UNKNOWN], glyph[GLYPH_NINTENDO_GAMECUBE_Z] - } + }, + { // WII + glyph[GLYPH_NINTENDO_WII_1], glyph[GLYPH_NINTENDO_WII_2], + glyph[GLYPH_NINTENDO_WII_A], glyph[GLYPH_NINTENDO_WII_B], + "HOME", glyph[GLYPH_NINTENDO_WII_MINUS], glyph[GLYPH_NINTENDO_WII_PLUS], + glyph[GLYPH_UNKNOWN], glyph[GLYPH_UNKNOWN], + glyph[GLYPH_UNKNOWN], glyph[GLYPH_UNKNOWN] + }, }; static bool keyboard_is_active = true; @@ -232,10 +247,16 @@ void BUTTONGLYPHS_update_layout(SDL_GameController *c) { layout = LAYOUT_NINTENDO_SWITCH_JOYCON_R; } - else if (product == 0x0337) + else if (product == 0x0337 || + product == 0x0100) // First GC controller on a Wii or Gamecube { layout = LAYOUT_GAMECUBE; } + else if (product == 0x0306 || // Wiimote on Linux + product == 0x0501) // First wiimote on Wii + { + layout = LAYOUT_WII; + } else { layout = LAYOUT_NINTENDO_SWITCH_PRO;