ACE3/TO_MERGE/ace/sys_maptools/fnc_KeyBoardHandler.sqf

25 lines
697 B
Plaintext
Raw Normal View History

/////////////////////////////////////////////////////
// testkb.sqf
// by nou
//
// please see the documentation in add_ruler.sqf
/////////////////////////////////////////////////////
//#define DEBUG_MODE_FULL
#include "script_component.hpp"
PARAMS_2(_event,_down);
if(_down) then {
GVAR(RulerKeyDown) = (_event select 1);
switch (GVAR(RulerKeyDown)) do {
case (["CBA","events","ace_sys_maptools","Delete_Line","key"] call ace_settings_fnc_getNumber): {
[] call FUNC(DeleteLine);
};
default {};
};
} else {
GVAR(RulerKeyDown) = -1000;
[] call GVAR(UpHandlerFnc);
GVAR(UpHandlerFnc) = {};
GVAR(DragAction) = "";
};