Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
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);
}
...
g_Game.GetDragQueue().Call(this, "UpdateDrag"); // calls "UpdateDrag" function on "this"
DayZGame g_Game
Definition dayzgame.c:3942

Definition at line 153 of file tools.c.


The documentation for this class was generated from the following file: