mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-01 03:19:09 +01:00
input_common: Filter SDL GUID
This commit is contained in:
parent
8ef9075b1b
commit
3e1e6c66c0
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,8 @@ Common::UUID GetGUID(SDL_Joystick* joystick) {
|
||||||
const SDL_JoystickGUID guid = SDL_JoystickGetGUID(joystick);
|
const SDL_JoystickGUID guid = SDL_JoystickGetGUID(joystick);
|
||||||
std::array<u8, 16> data{};
|
std::array<u8, 16> data{};
|
||||||
std::memcpy(data.data(), guid.data, sizeof(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};
|
return Common::UUID{data};
|
||||||
}
|
}
|
||||||
} // Anonymous namespace
|
} // Anonymous namespace
|
||||||
|
|
Loading…
Reference in a new issue