From 4123718a50fc885bab9746a28017ed2e836d58a8 Mon Sep 17 00:00:00 2001 From: He-Man Date: Fri, 19 May 2017 22:44:02 +0200 Subject: [PATCH 1/3] Added Custom KeyMaps --- .../customs/EPOCH_custom_KeyMap.sqf | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Sources/epoch_code/customs/EPOCH_custom_KeyMap.sqf 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 From 220a728cd406046ababf1293dea2c2fbd1ea7de1 Mon Sep 17 00:00:00 2001 From: He-Man Date: Fri, 19 May 2017 22:44:55 +0200 Subject: [PATCH 2/3] Added Custom KeyMap --- Sources/epoch_code/compile/setup/EPOCH_clientKeyMap.sqf | 2 ++ 1 file changed, 2 insertions(+) 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 { From d3c937ec8c3499c529d34f294545f69aee200465 Mon Sep 17 00:00:00 2001 From: He-Man Date: Fri, 19 May 2017 22:46:28 +0200 Subject: [PATCH 3/3] Added Custom KeyMap --- Sources/epoch_config/Configs/CfgClientFunctions.hpp | 1 + 1 file changed, 1 insertion(+) 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