summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-05 18:07:02 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-05 18:07:02 +0100
commit14f23df1a3c78ad53af61d14b57146b57c51e01b (patch)
tree2aa022e09fc6ed701e5ee6bcb4f55fe2de809f70
parent45c6950f1b45dfb2959b85b29078e699ec52ea6a (diff)
parent0cbd1c85a96384ef93978661e408ce7c1b721847 (diff)
Merge pull request #69563 from nyanpasu64/patch-1
Fix burning CPU with udev disabled on Flatpak
-rw-r--r--platform/linuxbsd/joypad_linux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linuxbsd/joypad_linux.cpp b/platform/linuxbsd/joypad_linux.cpp
index bc018e366b..4eaf6965c9 100644
--- a/platform/linuxbsd/joypad_linux.cpp
+++ b/platform/linuxbsd/joypad_linux.cpp
@@ -218,8 +218,8 @@ void JoypadLinux::monitor_joypads() {
}
}
closedir(input_directory);
+ usleep(1000000); // 1s
}
- usleep(1000000); // 1s
}
void JoypadLinux::close_joypads() {