shithub: hexen

Download patch

ref: 98543a898dbbfe789f13e9aad8a803bffaf08837
parent: ffb268cc6f6febf916f95b9ed9d06ab59f7989bf
author: Jacob Moody <moody@posixcafe.org>
date: Sun Jan 22 18:08:27 EST 2023

copy doom's mouse motion logic, default was too slow.

--- a/g_game.c
+++ b/g_game.c
@@ -777,8 +777,8 @@
 		mousebuttons[0] = ev->data1 & 1;
 		mousebuttons[1] = ev->data1 & 2;
 		mousebuttons[2] = ev->data1 & 4;
-		mousex = ev->data2 * (mouseSensitivity + 5) / 10;
-		mousey = ev->data3 * (mouseSensitivity + 5) / 10;
+		mousex = ev->data2 * (mouseSensitivity + 5) / 2;
+		mousey = ev->data3 * (mouseSensitivity + 5) / 2;
 		return true;	// eat events
 
 	case ev_joystick: