tracy/server/TracyMouse.hpp

22 lines
427 B
C++
Raw Permalink Normal View History

2020-08-01 09:49:43 +00:00
#ifndef __TRACYMOUSE_HPP__
#define __TRACYMOUSE_HPP__
#include "imgui.h"
2020-08-01 09:49:43 +00:00
namespace tracy
{
2020-08-01 10:02:11 +00:00
void MouseFrame();
2020-08-01 09:49:43 +00:00
bool IsMouseDown( ImGuiMouseButton button );
bool IsMouseClicked( ImGuiMouseButton button );
2020-08-01 10:03:11 +00:00
bool IsMouseDragging( ImGuiMouseButton button );
ImVec2 GetMouseDragDelta( ImGuiMouseButton button );
2020-08-01 09:49:43 +00:00
2020-08-01 10:10:59 +00:00
void ConsumeMouseEvents( ImGuiMouseButton button );
2020-08-01 10:35:15 +00:00
bool IsMouseClickReleased( ImGuiMouseButton button );
2020-08-01 10:10:59 +00:00
2020-08-01 09:49:43 +00:00
}
#endif