mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
IO: moved fields to put more focus on the new functions + update misc docs/references + update main.mm in Apple+Metal example (#4858)
This commit is contained in:
parent
90a6961638
commit
673f5e588d
5 changed files with 46 additions and 37 deletions
|
|
@ -114,7 +114,7 @@ void MyLowLevelMouseButtonHandler(int button, bool down)
|
|||
{
|
||||
// (1) ALWAYS forward mouse data to ImGui! This is automatic with default backends. With your own backend:
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
io.MouseDown[button] = down;
|
||||
io.AddMouseButtonEvent(button, down);
|
||||
|
||||
// (2) ONLY forward mouse data to your underlying app/game.
|
||||
if (!io.WantCaptureMouse)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue