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.
This commit is contained in:
Eli Ribble 2021-09-01 04:38:12 -06:00
parent e65e442276
commit 0c3ae88b5a
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ int handle_mouse(char* details, int udevice_fd) {
emit(udevice_fd, EV_REL, REL_X, x); emit(udevice_fd, EV_REL, REL_X, x);
} }
if(y != 0) { if(y != 0) {
emit(udevice_fd, EV_REL, REL_Y, y); emit(udevice_fd, EV_REL, REL_Y, -1 * y);
} }
if(left != current_left) { if(left != current_left) {