mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
63e2c16e74
#pragma once gets confused by `../../imgui/imgui.h` and `imgui.h` on macOS with XCode 12.5.
22 lines
427 B
C++
22 lines
427 B
C++
#ifndef __TRACYMOUSE_HPP__
|
|
#define __TRACYMOUSE_HPP__
|
|
|
|
#include "imgui.h"
|
|
|
|
namespace tracy
|
|
{
|
|
|
|
void MouseFrame();
|
|
|
|
bool IsMouseDown( ImGuiMouseButton button );
|
|
bool IsMouseClicked( ImGuiMouseButton button );
|
|
bool IsMouseDragging( ImGuiMouseButton button );
|
|
ImVec2 GetMouseDragDelta( ImGuiMouseButton button );
|
|
|
|
void ConsumeMouseEvents( ImGuiMouseButton button );
|
|
bool IsMouseClickReleased( ImGuiMouseButton button );
|
|
|
|
}
|
|
|
|
#endif
|