mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Update remapDlg.tscript
moved addKeyRemap() back to utility.tscript
This commit is contained in:
parent
0853de7c51
commit
2c10b61847
|
|
@ -132,26 +132,3 @@ function redoMapping( %device, %actionMap, %action, %cmd)
|
|||
OptionsMenu.populateKBMControls();
|
||||
OptionsMenu.populateGamepadControls();
|
||||
}
|
||||
|
||||
function addKeyRemap(%name, %actionMap, %device, %command, %description)
|
||||
{
|
||||
if(%name $= "" ||
|
||||
%actionMap $= "" ||
|
||||
%device $= "" ||
|
||||
%command $= "")
|
||||
{
|
||||
error("addKeybindRemap() - tried to add a remap entry, but didn't have all the keeded info!");
|
||||
return;
|
||||
}
|
||||
|
||||
// "mouse" is accepted as a convenience, but the remappable actions related functions treat it same as "keyboard".
|
||||
if(%device $= "mouse")
|
||||
%device = "keyboard";
|
||||
|
||||
$RemapName[$RemapCount] = %name;
|
||||
$RemapCmd[$RemapCount] = %command;
|
||||
$RemapActionMap[$RemapCount] = %actionMap;
|
||||
$RemapDevice[$RemapCount] = %device;
|
||||
$RemapDescription[$RemapCount] = %description;
|
||||
$RemapCount++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue