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

Popular posts from this blog

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

javascript - CasperJS/PhantomJS failing SSL handshakes on some sites even with --ssl-protocol=any -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -