ACE3/addons/finger/XEH_postInit.sqf

24 lines
659 B
Plaintext
Raw Normal View History

2015-06-09 01:34:29 +00:00
#include "script_component.hpp"
[QGVAR(fingered), {_this call FUNC(incomingFinger)}] call EFUNC(common,addEventHandler);
if (!hasInterface) exitWith {};
GVAR(lastFPTime) = -1;
GVAR(fingersHash) = HASH_CREATE;
GVAR(pfeh_id) = -1;
["SettingsInitialized", {
//If not enabled, dont't bother adding keybind
if (!GVAR(canFingerEachOther)) exitWith {};
["ACE3 Common",
QGVAR(finger),
[(localize LSTRING(keyComb)), (localize LSTRING(keyComb_description))],
{
_this call FUNC(keyPress);
},
{false},
[41, true, false, false], true] call cba_fnc_addKeybind; // Shift + Tilda (hold)
}] call EFUNC(common,addEventHandler);