Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2012-11-27 21:41:39 +0400
committerMitchell Stokes <mogurijin@gmail.com>2012-11-27 21:41:39 +0400
commit936fca57c394093bca4e8d8609635c51ebeee49d (patch)
tree6b21e3659a344330d462a16e1dfcbb2bd6e54eb7 /source/gameengine/BlenderRoutines
parent5a6d6952185134d4ae66edd01f79bedb5d731a2c (diff)
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.
Diffstat (limited to 'source/gameengine/BlenderRoutines')
-rw-r--r--source/gameengine/BlenderRoutines/KX_BlenderKeyboardDevice.cpp2
1 files changed, 1 insertions, 1 deletions
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;