Android UI overlay touch handling

This commit is contained in:
saschawillems 2017-11-02 17:07:07 +01:00
parent 97975a314d
commit 5795a77e7b
3 changed files with 45 additions and 15 deletions

View file

@ -158,7 +158,9 @@ namespace vks
{
/* @brief Touch control thresholds from Android NDK samples */
const int32_t DOUBLE_TAP_TIMEOUT = 300 * 1000000;
const int32_t TAP_TIMEOUT = 180 * 1000000;
const int32_t DOUBLE_TAP_SLOP = 100;
const int32_t TAP_SLOP = 8;
/** @brief Density of the device screen (in DPI) */
extern int32_t screenDensity;