mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Update input.tscript
moved addKeyRemap() to remapDlg.tscript in the UI Module, since the function is useless without the UI module anyway
This commit is contained in:
parent
750190b70a
commit
5307a09075
|
|
@ -9,22 +9,3 @@ function getMouseAdjustAmount(%val)
|
||||||
// based on a default camera FOV of 90'
|
// based on a default camera FOV of 90'
|
||||||
return(%val * ($cameraFov / 90) * 0.01) * $pref::Input::LinkMouseSensitivity;
|
return(%val * ($cameraFov / 90) * 0.01) * $pref::Input::LinkMouseSensitivity;
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
$RemapName[$RemapCount] = %name;
|
|
||||||
$RemapCmd[$RemapCount] = %command;
|
|
||||||
$RemapActionMap[$RemapCount] = %actionMap;
|
|
||||||
$RemapDevice[$RemapCount] = %device;
|
|
||||||
$RemapDescription[$RemapCount] = %description;
|
|
||||||
$RemapCount++;
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue