diff --git a/Sources/epoch_code/compile/setup/EPOCH_clientKeyMap.sqf b/Sources/epoch_code/compile/setup/EPOCH_clientKeyMap.sqf index 91097b52..bd6da6e4 100644 --- a/Sources/epoch_code/compile/setup/EPOCH_clientKeyMap.sqf +++ b/Sources/epoch_code/compile/setup/EPOCH_clientKeyMap.sqf @@ -49,6 +49,8 @@ _keyMap = ["Build: Rotate RIGHT", "EPOCH_keysBuildRotR", 0x10] ]; +_keyMap call EPOCH_custom_KeyMap; + switch (_args) do { case 0: //load variables { diff --git a/Sources/epoch_code/customs/EPOCH_custom_KeyMap.sqf b/Sources/epoch_code/customs/EPOCH_custom_KeyMap.sqf new file mode 100644 index 00000000..4ae037c6 --- /dev/null +++ b/Sources/epoch_code/customs/EPOCH_custom_KeyMap.sqf @@ -0,0 +1,31 @@ +/* + Author: Aaron Clark - EpochMod.com + + Contributors: [Ignatz] He-Man + + Description: + Custom A3 Epoch KeyMap + + Licence: + Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike + + Github: + https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/custom/EPOCH_custom_KeyMap.sqf + + Description: + Add your own customable KeyMaps to the Epoch Configuration Menu (ESC-Menu) + + usage: + ["Text in ESC-Menu","VariableNameForKey",keycode] for full keycode list see: https://community.bistudio.com/wiki/DIK_KeyCodes +*/ + +_keyMap = _keyMap + [ +/* Example from eXpoch Vector building: + ["Build: Vector LEFT", "eXpoch_keysVectorTiltL", 0xCB], + ["Build: Vector RIGHT", "eXpoch_keysVectorTiltR", 0xCD], + ["Build: Vector AWAY", "eXpoch_keysVectorTiltAwy", 0xC8], + ["Build: Vector TOWARD", "eXpoch_keysVectorTiltTwd", 0xD0], + ["Build: Object SnapTo", "eXpoch_keysVectorSnapToObject", 0x52], + ["Build: Reset Object", "eXpoch_keysVectorResetObject", 0x4C] +*/ +]; \ No newline at end of file diff --git a/Sources/epoch_config/Configs/CfgClientFunctions.hpp b/Sources/epoch_config/Configs/CfgClientFunctions.hpp index a63456b6..43d5bc54 100644 --- a/Sources/epoch_config/Configs/CfgClientFunctions.hpp +++ b/Sources/epoch_config/Configs/CfgClientFunctions.hpp @@ -189,6 +189,7 @@ class CfgClientFunctions class custom_EH_Killed {}; class custom_EH_Put {}; class custom_EH_Take {}; + class custom_KeyMap {}; class custom_OnEachFrame {}; }; class messaging