mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
Merge pull request #9404 from german77/sdl_filter
input_common: Filter SDL GUID
This commit is contained in:
commit
b32b9524ad
|
@ -16,6 +16,8 @@ Common::UUID GetGUID(SDL_Joystick* joystick) {
|
|||
const SDL_JoystickGUID guid = SDL_JoystickGetGUID(joystick);
|
||||
std::array<u8, 16> data{};
|
||||
std::memcpy(data.data(), guid.data, sizeof(data));
|
||||
// Clear controller name crc
|
||||
std::memset(data.data() + 2, 0, sizeof(u16));
|
||||
return Common::UUID{data};
|
||||
}
|
||||
} // Anonymous namespace
|
||||
|
|
Loading…
Reference in a new issue