Skip to content

Commit e0fe988

Browse files
authored
Expect same controler GUID format for SDL2 on Windows as Linux (#18635)
1 parent 0c987f8 commit e0fe988

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

input/drivers_joypad/sdl_joypad.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,8 @@ static void sdl_pad_connect(unsigned id)
135135
#ifdef HAVE_SDL2
136136
guid = SDL_JoystickGetGUID(pad->joypad);
137137
guid_ptr = (uint16_t*)guid.data;
138-
#ifdef __linux
139138
vendor = guid_ptr[2];
140139
product = guid_ptr[4];
141-
#elif _WIN32
142-
vendor = guid_ptr[0];
143-
product = guid_ptr[1];
144-
#endif
145140
#ifdef WEBOS
146141
if (vendor == 0x9999 && product == 0x9999)
147142
{

0 commit comments

Comments
 (0)