forked from ShuriZma/suyu
1
0
Fork 0

try to fix clang again

This commit is contained in:
Crimson-Hawk 2024-03-21 19:53:25 +08:00
parent ab3e51e50d
commit b6ad090424
No known key found for this signature in database
GPG Key ID: 82D963563CFDCEA1
1 changed files with 3 additions and 2 deletions

View File

@ -760,10 +760,11 @@ void EmulatedController::StartMotionCalibration() {
}
}
void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback, std::size_t index, Common::UUID uuid) {
void EmulatedController::SetButton(const Common::Input::CallbackStatus& callback, std::size_t index,
Common::UUID uuid) {
const auto player_index = Service::HID::NpadIdTypeToIndex(npad_id_type);
const auto& player = Settings::values.players.GetValue()[player_index];
if (index >= controller.button_values.size()) {
if (index >= controller.button_values.size()) {
return;
}
std::unique_lock lock{mutex};