This commit is contained in:
kalaposfos13 2025-01-01 21:00:42 +01:00
parent 09856df67b
commit b02087af88
2 changed files with 8 additions and 4 deletions

View File

@ -222,7 +222,10 @@ void ParseInputConfig(const std::string game_id = "") {
lineCount++;
// Strip the ; and whitespace
line.erase(std::remove(line.begin(), line.end(), ' '), line.end());
line.erase(std::remove_if(line.begin(), line.end(),
[](unsigned char c) { return std::isspace(c); }),
line.end());
if (line.empty()) {
continue;
}

View File

@ -1,10 +1,11 @@
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include "input_mouse.h"
#include <cmath>
#include "common/types.h"
#include "controller.h"
#include "input/controller.h"
#include "input_mouse.h"
#include "SDL3/SDL.h"
@ -70,4 +71,4 @@ Uint32 MousePolling(void* param, Uint32 id, Uint32 interval) {
return interval;
}
} // namespace Input
} // namespace Input