DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
CallQueue Class Reference

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

Private Member Functions

void DragQueue ()
 
override void Tick ()
 System function, don't call it.
 

Private Attributes

private ref Param3< int, int, boolm_mouse_params
 

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

Member Function Documentation

◆ DragQueue()

void DragQueue ( )
inlineprivate

◆ Tick()

override void Tick ( )
inlineprivate

Field Documentation

◆ m_mouse_params

private ref Param3<int, int, bool> m_mouse_params
private

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