Replace and depreacate EFUNC(common,addScrollWheelEventHandler) with MouseZChanged Display EH

This commit is contained in:
jonpas
2016-03-02 17:33:46 +01:00
parent 597be8ce3b
commit 4918dbacb0
22 changed files with 79 additions and 14 deletions

View File

@ -24,3 +24,9 @@ class Extended_Respawn_EventHandlers {
};
};
};
class Extended_DisplayLoad_EventHandlers {
class RscDisplayMission {
ADDON = QUOTE(_this call COMPILE_FILE(XEH_missionDisplayLoad));
};
};

View File

@ -0,0 +1,5 @@
#include "script_component.hpp"
params ["_display"];
_display displayAddEventHandler ["MouseZChanged", {(_this select 1) call FUNC(handleScrollWheel)}];

View File

@ -32,8 +32,6 @@ if (!hasInterface) exitWith {};
GVAR(isOpeningDoor) = false;
[{_this call FUNC(handleScrollWheel)}] call EFUNC(common,addScrollWheelEventHandler);
["tapShoulder", {
params ["_unit", "_shoulderNum"];