
.. _program_listing_file_Src_GraphicsEngineVulkan_gui_DoubleClickWindow.hpp:

Program Listing for File DoubleClickWindow.hpp
==============================================

|exhale_lsh| :ref:`Return to documentation for file <file_Src_GraphicsEngineVulkan_gui_DoubleClickWindow.hpp>` (``Src/GraphicsEngineVulkan/gui/DoubleClickWindow.hpp``)

.. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS

.. code-block:: cpp

   #pragma once
   
   #include <algorithm>
   
   namespace Kataglyphis::Frontend {
   
   // Down, up and down reach ImGui a frame each: two frames and half again, at least 0.3 s, uncapped for QEMU's frames.
   constexpr float doubleClickWindow(float previousDeltaTime, float deltaTime)
   { return std::max(1.5F * (previousDeltaTime + deltaTime), 0.3F); }
   
   }// namespace Kataglyphis::Frontend
