TriggerRegisterPlayerMouseEventBJ
- Parameters
-
trig trigger
whichPlayer player
meType integer
- comment
- patch
1.29.0.8803
- Source
- Blizzard.j
- return type
event
- Source code
function TriggerRegisterPlayerMouseEventBJ takes trigger trig, player whichPlayer, integer meType returns event if (meType == bj_MOUSEEVENTTYPE_DOWN) then // Mouse down event return TriggerRegisterPlayerEvent(trig, whichPlayer, EVENT_PLAYER_MOUSE_DOWN) elseif (meType == bj_MOUSEEVENTTYPE_UP) then // Mouse up event return TriggerRegisterPlayerEvent(trig, whichPlayer, EVENT_PLAYER_MOUSE_UP) elseif (meType == bj_MOUSEEVENTTYPE_MOVE) then // Mouse move event return TriggerRegisterPlayerEvent(trig, whichPlayer, EVENT_PLAYER_MOUSE_MOVE) else // Unrecognized type - ignore the request and return failure. return null endif endfunction