Skip to content

Instantly share code, notes, and snippets.

View VoodaGod's full-sized avatar

Jason Rensburger VoodaGod

  • 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 December 28, 2024 08:36
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/90ded2c8b0896999f078bf908288abeb372912aa/mouse_sense_fix.patch'
)
b2sums=(
@VoodaGod
VoodaGod / mouse_sense_fix.patch
Created December 28, 2024 08:21
gamescope mouse sensitivity <0 dead range fix
--- a/src/wlserver.cpp
+++ b/src/wlserver.cpp
@@ -2336,6 +2336,8 @@ static bool wlserver_apply_constraint( double *dx, double *dy )
return true;
}
+static double rem_x = 0.0;
+static double rem_y = 0.0;
void wlserver_mousemotion( double dx, double dy, uint32_t time )
{