BGE: Fixing the double-click issue for mouse events too. The previous fix only fixed...
authorMitchell Stokes <mogurijin@gmail.com>
Thu, 29 Nov 2012 05:21:24 +0000 (05:21 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Thu, 29 Nov 2012 05:21:24 +0000 (05:21 +0000)
source/gameengine/BlenderRoutines/KX_BlenderMouseDevice.cpp

index aa2392ded0884fd97361aabfbe1211cd9b4efc8a..8d90eacd27f960c63970c98541c35b789e01be17 100644 (file)
@@ -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)
        {
        // 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 ; //???
 
                {
                        m_eventStatusTables[m_currentTable][kxevent].m_eventval = val ; //???