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 / 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 )
{