diff --git a/Templates/BaseGame/game/data/UI/guis/remapDlg.tscript b/Templates/BaseGame/game/data/UI/guis/remapDlg.tscript index 0ba04c371..cb1f749b3 100644 --- a/Templates/BaseGame/game/data/UI/guis/remapDlg.tscript +++ b/Templates/BaseGame/game/data/UI/guis/remapDlg.tscript @@ -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++; -}