c++ - Double click, how handle it? -
i trying find out how handle double click left(or any) mouse button. can't find information it.
can me? don't want write own double click handler.
glfw_repeat doesn't work mouse buttons.
what's wrong writing own double click handler?
just save time mouse click happens, e.g. std::chrono::high_resolution_clock::now()
, , when next mouse click happens, compare times. if under specific value, double click happened.
Comments
Post a Comment