ACE3/addons/finger/XEH_postInit.sqf

24 lines
733 B
Plaintext
Raw Normal View History

2015-06-09 01:34:29 +00:00
#include "script_component.hpp"
if (!hasInterface) exitWith {};
GVAR(lastFPTime) = -1;
GVAR(fingersHash) = HASH_CREATE;
GVAR(pfeh_id) = -1;
2016-05-24 13:13:11 +00:00
["ace_settingsInitialized", {
//If not enabled, dont't bother adding eventhandler
TRACE_1("ace_settingsInitialized eh", GVAR(enabled));
2015-06-09 19:02:19 +00:00
if (!GVAR(enabled)) exitWith {};
[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)