revise mouse paramater comments

This commit is contained in:
pierow 2023-11-25 13:46:15 -05:00
parent deffcba07c
commit bf34643be3

View file

@ -96,8 +96,9 @@ int old_mouse_x, old_mouse_y, mx_accum, my_accum;
float mouse_x, mouse_y; float mouse_x, mouse_y;
static int restore_spi; static int restore_spi;
//// Previous code from HL SDK windows98 for era paramaters. See comments in IN_StartupMouse. //// Previous code from Quake era forced mouse accel. Also adjusted launch params in IN_StartupMouse.
//static int originalmouseparms[3], newmouseparms[3] = {0, 0, 1}; //static int originalmouseparms[3], newmouseparms[3] = {0, 0, 1};
////Mouse accel forced off.
static int originalmouseparms[3], newmouseparms[3] = { 0, 0, 0}; static int originalmouseparms[3], newmouseparms[3] = { 0, 0, 0};
static int mouseactive = 0; static int mouseactive = 0;
int mouseinitialized; int mouseinitialized;
@ -389,12 +390,7 @@ void IN_StartupMouse (void)
if (mouseparmsvalid) if (mouseparmsvalid)
{ {
//// Original mouse parameter code. SPI_GETMOUSE windows parameters changed either in win2000 or winxp and these launch parameters haven't made sense since. //// Original mouse parameter code before disabling forced mouse acceleration.
//// The newmouseparms[2] (mouse accel on/off in newer windows) was also hardcoded to 1 previously, forcing acceleration on for players without noforcemspd or noforcemparms parameters. This was done so to make mouse speed = 1 in win98.
//// SPI_GETMOUSE documentation:
//// Win10: https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-systemparametersinfoa
//// https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-mouse_event
//// Win98: Retrieve the x-axis and y-axis threshold values for the mouse as well as the mouse speed. uiParam must be 0. pvParam is a 3-element array of Long-type variables which receives the x-threshold, y-threshold, and mouse speed.
//if ( gEngfuncs.CheckParm ("-noforcemspd", NULL ) ) //if ( gEngfuncs.CheckParm ("-noforcemspd", NULL ) )
// newmouseparms[2] = originalmouseparms[2]; // newmouseparms[2] = originalmouseparms[2];
// //