Skip to content

Commit

Permalink
^
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaposfos13 committed Jan 1, 2025
1 parent e244f35 commit cd4b5c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/input/input_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
7 changes: 4 additions & 3 deletions src/input/input_mouse.cpp
Original file line number Diff line number Diff line change
@@ -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"

Expand Down Expand Up @@ -70,4 +71,4 @@ Uint32 MousePolling(void* param, Uint32 id, Uint32 interval) {
return interval;
}

} // namespace Input
} // namespace Input

0 comments on commit cd4b5c5

Please sign in to comment.