2015-06-09 01:34:29 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
|
2021-10-11 20:48:30 +00:00
|
|
|
["CBA_settingsInitialized", {
|
2016-06-13 17:14:35 +00:00
|
|
|
//If not enabled, dont't bother adding eventhandler
|
2024-02-05 17:04:24 +00:00
|
|
|
TRACE_1("CBA_settingsInitialized eh",GVAR(enabled));
|
2015-06-09 19:02:19 +00:00
|
|
|
if (!GVAR(enabled)) exitWith {};
|
2021-10-11 20:48:30 +00:00
|
|
|
|
2016-07-30 17:28:07 +00:00
|
|
|
GVAR(lastFPTime) = -1;
|
2021-10-10 16:55:14 +00:00
|
|
|
GVAR(fingersHash) = createHashMap;
|
2016-07-30 17:28:07 +00:00
|
|
|
GVAR(pfeh_id) = -1;
|
2021-10-11 20:48:30 +00:00
|
|
|
|
2024-03-28 18:57:23 +00:00
|
|
|
[QGVAR(fingered), LINKFUNC(incomingFinger)] call CBA_fnc_addEventHandler;
|
2016-05-22 15:29:05 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|
2016-06-13 17:14:35 +00:00
|
|
|
|
|
|
|
//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)
|