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;
|
|
|
|
|
|
|
|
["SettingsInitialized", {
|
2015-06-09 05:00:00 +00:00
|
|
|
//If not enabled, dont't bother adding keybind or eventhandler
|
2015-06-09 19:02:19 +00:00
|
|
|
if (!GVAR(enabled)) exitWith {};
|
2015-06-09 01:34:29 +00:00
|
|
|
|
2016-05-22 15:29:05 +00:00
|
|
|
[QGVAR(fingered), {_this call FUNC(incomingFinger)}] call CBA_fnc_addEventHandler;
|
2016-05-03 00:32:44 +00:00
|
|
|
|
2015-06-09 01:34:29 +00:00
|
|
|
["ACE3 Common",
|
|
|
|
QGVAR(finger),
|
|
|
|
[(localize LSTRING(keyComb)), (localize LSTRING(keyComb_description))],
|
|
|
|
{
|
|
|
|
_this call FUNC(keyPress);
|
|
|
|
},
|
|
|
|
{false},
|
2015-11-30 15:45:20 +00:00
|
|
|
[41, [true, false, false]], true] call CBA_fnc_addKeybind; // Shift + Tilda (hold)
|
2016-05-22 15:29:05 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|