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

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

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

python - Received unregistered task using Celery with Django -