mirror of
https://github.com/ENSL/NS.git
synced 2024-11-24 21:41:17 +00:00
revise mouse paramater comments
This commit is contained in:
parent
deffcba07c
commit
bf34643be3
1 changed files with 3 additions and 7 deletions
|
@ -96,8 +96,9 @@ int old_mouse_x, old_mouse_y, mx_accum, my_accum;
|
|||
float mouse_x, mouse_y;
|
||||
|
||||
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};
|
||||
////Mouse accel forced off.
|
||||
static int originalmouseparms[3], newmouseparms[3] = { 0, 0, 0};
|
||||
static int mouseactive = 0;
|
||||
int mouseinitialized;
|
||||
|
@ -389,12 +390,7 @@ void IN_StartupMouse (void)
|
|||
|
||||
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.
|
||||
//// 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.
|
||||
//// Original mouse parameter code before disabling forced mouse acceleration.
|
||||
//if ( gEngfuncs.CheckParm ("-noforcemspd", NULL ) )
|
||||
// newmouseparms[2] = originalmouseparms[2];
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue