Skip to content

Instantly share code, notes, and snippets.

View VoodaGod's full-sized avatar

Jason Janse van Rensburg VoodaGod

  • Bertrandt
  • Munich, Germany
View GitHub Profile
@VoodaGod
VoodaGod / openvr_cmake4.patch
Created April 2, 2025 15:51
gamescope openvr cmake 4 build compatibilty
adapted from https://patch-diff.githubusercontent.com/raw/ValveSoftware/openvr/pull/1890.patch
---
subprojects/openvr/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/subprojects/openvr/CMakeLists.txt b/subprojects/openvr/CMakeLists.txt
index fb4c7851..52678aff 100644
--- a/subprojects/openvr/CMakeLists.txt
+++ b/subprojects/openvr/CMakeLists.txt
@@ -1,5 +1,5 @@
@VoodaGod
VoodaGod / PKGBUILD.patch
Last active June 24, 2026 14:34
gamescope-git AUR package patch for using mouse_sense_fix.patch
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -69,6 +69,7 @@ source=(
'git+https://github.com/Joshua-Ashton/reshade.git'
'git+https://github.com/Joshua-Ashton/GamescopeShaders.git#tag=v0.1'
'git+https://github.com/KhronosGroup/SPIRV-Headers.git'
+ 'https://gist.githubusercontent.com/VoodaGod/e4ac5363bd98b86cf7ab739101f852e5/raw/84528836ac13b3ef1ce708b786ae514d1bdc0480/mouse_sense_fix.patch'
)
b2sums=(
@VoodaGod
VoodaGod / mouse_sense_fix.patch
Last active June 24, 2026 14:32
gamescope mouse sensitivity <0 dead range fix
diff --git a/src/wlserver.cpp b/src/wlserver.cpp
index 75fa37c6..20d64c8e 100644
--- a/src/wlserver.cpp
+++ b/src/wlserver.cpp
@@ -2753,6 +2753,16 @@ void wlserver_mousemotion( double dx, double dy, uint32_t time )
dx *= g_mouseSensitivity;
dy *= g_mouseSensitivity;
+
+ static double rem_x = 0.0;