mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
998f86f034
* first pass * second pass * third pass * final pass * missing commas * newlines * switch to cba eventhandler * newlines, formatting * laser - movedToSQF * add logging to ace_common_fnc_cbaSettings_loadFromConfig * Update initSettings.sqf Co-authored-by: PabstMirror <pabstmirror@gmail.com>
25 lines
748 B
Plaintext
25 lines
748 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
["CBA_settingsInitialized", {
|
|
//If not enabled, dont't bother adding eventhandler
|
|
TRACE_1("CBA_settingsInitialized eh", GVAR(enabled));
|
|
if (!GVAR(enabled)) exitWith {};
|
|
|
|
GVAR(lastFPTime) = -1;
|
|
GVAR(fingersHash) = createHashMap;
|
|
GVAR(pfeh_id) = -1;
|
|
|
|
[QGVAR(fingered), {_this call FUNC(incomingFinger)}] call CBA_fnc_addEventHandler;
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
//Add Keybind:
|
|
["ACE3 Common", QGVAR(finger), [(localize LSTRING(keyComb)), (localize LSTRING(keyComb_description))],
|
|
{
|
|
if (!GVAR(enabled)) exitWith {false};
|
|
_this call FUNC(keyPress);
|
|
},
|
|
{false},
|
|
[41, [true, false, false]], true] call CBA_fnc_addKeybind; // Shift + Tilda (hold)
|