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-29 09:21:24 +0400
committerMitchell Stokes <mogurijin@gmail.com>2012-11-29 09:21:24 +0400
commit5ce13d0c6c19c63987da0b1f8cbeb7ff61ee9570 (patch)
treea3abd3ba406665c330724ada4ef5da5a15a44efc /source/gameengine/BlenderRoutines
parent858149d7c7f3bd4d6a254d560d3a0810e5739ae5 (diff)
BGE: Fixing the double-click issue for mouse events too. The previous fix only fixed double-click keyboard events.
Diffstat (limited to 'source/gameengine/BlenderRoutines')
-rw-r--r--source/gameengine/BlenderRoutines/KX_BlenderMouseDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/BlenderRoutines/KX_BlenderMouseDevice.cpp b/source/gameengine/BlenderRoutines/KX_BlenderMouseDevice.cpp
index aa2392ded08..8d90eacd27f 100644
--- a/source/gameengine/BlenderRoutines/KX_BlenderMouseDevice.cpp
+++ b/source/gameengine/BlenderRoutines/KX_BlenderMouseDevice.cpp
@@ -121,7 +121,7 @@ bool KX_BlenderMouseDevice::ConvertBlenderEvent(unsigned short incode,short val)
// only process it, if it's a key
if (kxevent > KX_BEGINMOUSE && kxevent < KX_ENDMOUSEBUTTONS)
{
- if (val == KM_PRESS)
+ if (val == KM_PRESS || val == KM_DBL_CLICK)
{
m_eventStatusTables[m_currentTable][kxevent].m_eventval = val ; //???