mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
Fixed this problem: http://duke3d.bur.st/forum/index.php?topic=8.msg1938#msg1938.
Also it was impossible to assign "no action" to the left mouse button. git-svn-id: https://svn.eduke32.com/eduke32@752 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
394b0e4423
commit
b0a2d52771
1 changed files with 4 additions and 8 deletions
|
@ -400,13 +400,11 @@ void CONFIG_SetupMouse(void)
|
||||||
Bsprintf(str,"MouseButton%d",i);
|
Bsprintf(str,"MouseButton%d",i);
|
||||||
temp[0] = 0;
|
temp[0] = 0;
|
||||||
if (!SCRIPT_GetString(ud.config.scripthandle,"Controls", str,temp))
|
if (!SCRIPT_GetString(ud.config.scripthandle,"Controls", str,temp))
|
||||||
if (CONFIG_FunctionNameToNum(temp) != -1 || (!temp[0] && CONFIG_FunctionNameToNum(temp) != -1))
|
|
||||||
ud.config.MouseFunctions[i][0] = CONFIG_FunctionNameToNum(temp);
|
ud.config.MouseFunctions[i][0] = CONFIG_FunctionNameToNum(temp);
|
||||||
|
|
||||||
Bsprintf(str,"MouseButtonClicked%d",i);
|
Bsprintf(str,"MouseButtonClicked%d",i);
|
||||||
temp[0] = 0;
|
temp[0] = 0;
|
||||||
if (!SCRIPT_GetString(ud.config.scripthandle,"Controls", str,temp))
|
if (!SCRIPT_GetString(ud.config.scripthandle,"Controls", str,temp))
|
||||||
if (CONFIG_FunctionNameToNum(temp) != -1 || (!temp[0] && CONFIG_FunctionNameToNum(temp) != -1))
|
|
||||||
ud.config.MouseFunctions[i][1] = CONFIG_FunctionNameToNum(temp);
|
ud.config.MouseFunctions[i][1] = CONFIG_FunctionNameToNum(temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -477,13 +475,11 @@ void CONFIG_SetupJoystick(void)
|
||||||
Bsprintf(str,"JoystickButton%d",i);
|
Bsprintf(str,"JoystickButton%d",i);
|
||||||
temp[0] = 0;
|
temp[0] = 0;
|
||||||
if (!SCRIPT_GetString(ud.config.scripthandle,"Controls", str,temp))
|
if (!SCRIPT_GetString(ud.config.scripthandle,"Controls", str,temp))
|
||||||
if (CONFIG_FunctionNameToNum(temp) != -1 || (!temp[0] && CONFIG_FunctionNameToNum(temp) != -1))
|
|
||||||
ud.config.JoystickFunctions[i][0] = CONFIG_FunctionNameToNum(temp);
|
ud.config.JoystickFunctions[i][0] = CONFIG_FunctionNameToNum(temp);
|
||||||
|
|
||||||
Bsprintf(str,"JoystickButtonClicked%d",i);
|
Bsprintf(str,"JoystickButtonClicked%d",i);
|
||||||
temp[0] = 0;
|
temp[0] = 0;
|
||||||
if (!SCRIPT_GetString(ud.config.scripthandle,"Controls", str,temp))
|
if (!SCRIPT_GetString(ud.config.scripthandle,"Controls", str,temp))
|
||||||
if (CONFIG_FunctionNameToNum(temp) != -1 || (!temp[0] && CONFIG_FunctionNameToNum(temp) != -1))
|
|
||||||
ud.config.JoystickFunctions[i][1] = CONFIG_FunctionNameToNum(temp);
|
ud.config.JoystickFunctions[i][1] = CONFIG_FunctionNameToNum(temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue