mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Implement consumption of mouse events.
This commit is contained in:
parent
6d0d12ce78
commit
22651eccc5
@ -48,4 +48,12 @@ ImVec2 GetMouseDragDelta( ImGuiMouseButton button )
|
||||
return s_mouse.mouseDragDelta[button];
|
||||
}
|
||||
|
||||
void ConsumeMouseEvents( ImGuiMouseButton button )
|
||||
{
|
||||
s_mouse.mouseDown[button] = false;
|
||||
s_mouse.mouseClicked[button] = false;
|
||||
s_mouse.mouseDragging[button] = false;
|
||||
s_mouse.mouseDragDelta[button] = ImVec2( 0, 0 );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -13,6 +13,8 @@ bool IsMouseClicked( ImGuiMouseButton button );
|
||||
bool IsMouseDragging( ImGuiMouseButton button );
|
||||
ImVec2 GetMouseDragDelta( ImGuiMouseButton button );
|
||||
|
||||
void ConsumeMouseEvents( ImGuiMouseButton button );
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user