Skip to content

imgui on touchscreen #2650

@sailfish009

Description

@sailfish009

Hi, not much to add my code here, because it is simple question.

Version/Branch of Dear ImGui:

Version: v1.49
Branch: master

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_glfw.cpp
Compiler: vs2017
Operating System: Windows 10 64bit

My Issue/Question:

If i test button with mouse, it clicked with single-click.
But if i test button on touchscreen, it can not be clicked with single-click,
but only double-click.

How i use imgui button on my touchscreen(microsoft surface, win10) with single-click?

Screenshots/Video

realsense_viewer

Standalone, minimal, complete and verifiable example: (see #2261)


ImGui::Begin("Example Bug");
static int counter = 0;
if (ImGui::Button("-##1"))  // <----- single click doesn't work on touchscreen
{
    --counter;
}
ImGui::End();

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions