diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2012-11-27 21:41:39 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2012-11-27 21:41:39 +0400 |
commit | 936fca57c394093bca4e8d8609635c51ebeee49d (patch) | |
tree | 6b21e3659a344330d462a16e1dfcbb2bd6e54eb7 /source/gameengine/BlenderRoutines | |
parent | 5a6d6952185134d4ae66edd01f79bedb5d731a2c (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.cpp | 2 |
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; |