From 936fca57c394093bca4e8d8609635c51ebeee49d Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Tue, 27 Nov 2012 17:41:39 +0000 Subject: [PATCH] BGE: Fix for [#33027] "logic.keyboard polling rate extremely low" reported by Josiah Lane (solarlune). The embedded player now treats KM_DBL_CLICK the same as KM_PRESS. --- source/gameengine/BlenderRoutines/KX_BlenderKeyboardDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gameengine/BlenderRoutines/KX_BlenderKeyboardDevice.cpp b/source/gameengine/BlenderRoutines/KX_BlenderKeyboardDevice.cpp index f4e325eabb8..19ba46ed6d7 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderKeyboardDevice.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderKeyboardDevice.cpp @@ -105,7 +105,7 @@ bool KX_BlenderKeyboardDevice::ConvertBlenderEvent(unsigned short incode,short v { int previousTable = 1-m_currentTable; - if (val == KM_PRESS) + if (val == KM_PRESS || val == KM_DBL_CLICK) { if (kxevent == KX_KetsjiEngine::GetExitKey() && val != 0 && !m_hookesc) result = true;