Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
CallQueue Class Reference

DragQueue Class provide callbacks while mouse is dragging. Callback function must have exact arguments: More...

Detailed Description

DragQueue Class provide callbacks while mouse is dragging. Callback function must have exact arguments:

void AnyFunctionName(int mouse_x, int mouse_y, bool is_dragging);

When mouse button is released, callback function is called one more time with is_dragging = false. Then all callbacks are automatically removed from queue.


usage:

class XYZ
{
void UpdateDrag(int mouse_x, int mouse_y, bool is_dragging);
}
...
GetGame().GetDragQueue().Call(this, "UpdateDrag"); // calls "UpdateDrag" function on "this"

Definition at line 153 of file tools.c.


The documentation for this class was generated from the following file:
GetGame
proto native CGame GetGame()