mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +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
1 changed files with 0 additions and 19 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue