Always add finger keybind so it is changeable (#3914)

This commit is contained in:
PabstMirror 2016-06-13 12:14:35 -05:00 committed by GitHub
parent 2870944067
commit a6766b611f

View File

@ -7,17 +7,17 @@ GVAR(fingersHash) = HASH_CREATE;
GVAR(pfeh_id) = -1;
["ace_settingsInitialized", {
//If not enabled, dont't bother adding keybind or eventhandler
//If not enabled, dont't bother adding eventhandler
TRACE_1("ace_settingsInitialized eh", GVAR(enabled));
if (!GVAR(enabled)) exitWith {};
[QGVAR(fingered), {_this call FUNC(incomingFinger)}] call CBA_fnc_addEventHandler;
["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 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)