Jelajahi Sumber

Update input.tscript

moved addKeyRemap() to remapDlg.tscript in the UI Module, since the function is useless without the UI module anyway
Sir-Skurpsalot 1 bulan lalu
induk
melakukan
5307a09075
1 mengubah file dengan 0 tambahan dan 19 penghapusan
  1. 0 19
      Templates/BaseGame/game/core/utility/scripts/input.tscript

+ 0 - 19
Templates/BaseGame/game/core/utility/scripts/input.tscript

@@ -9,22 +9,3 @@ function getMouseAdjustAmount(%val)
    // based on a default camera FOV of 90'
    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++;  
-}