From 0c3ae88b5a81a7d0192299099818d6e084f7b5f0 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 1 Sep 2021 04:38:12 -0600 Subject: [PATCH] Invert mouse playback. Without this we go exactly the wrong way in the Y direction. This is likely an issue with my game rather than the playback. --- playback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playback.c b/playback.c index 98b3eaa..030cfec 100644 --- a/playback.c +++ b/playback.c @@ -129,7 +129,7 @@ int handle_mouse(char* details, int udevice_fd) { emit(udevice_fd, EV_REL, REL_X, x); } if(y != 0) { - emit(udevice_fd, EV_REL, REL_Y, y); + emit(udevice_fd, EV_REL, REL_Y, -1 * y); } if(left != current_left) {