[Bf-blender-cvs] [11f36dfd1ff] temp-rawdata: Raw Test

Antonio Vazquez noreply at git.blender.org
Thu Nov 7 11:28:28 CET 2019


Commit: 11f36dfd1ff58bada523715c950dc1af142287e2
Author: Antonio Vazquez
Date:   Sun Oct 13 20:33:23 2019 +0200
Branches: temp-rawdata
https://developer.blender.org/rB11f36dfd1ff58bada523715c950dc1af142287e2

Raw Test

===================================================================

M	intern/ghost/intern/GHOST_SystemWin32.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index f6e5ca13d2b..120bed45b97 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -962,22 +962,6 @@ GHOST_EventCursor *GHOST_SystemWin32::processCursorEvent(GHOST_TEventType type,
     }
   }
   else {
-    static int lastStamp = 0;
-    MOUSEMOVEPOINT mp_in = {x_screen, y_screen, GetMessageTime()};
-    MOUSEMOVEPOINT mp_out[64];
-    int cpt = GetMouseMovePointsEx(sizeof(mp_in), &mp_in, mp_out, 64, GMMP_USE_DISPLAY_POINTS);
-    if (cpt > 0) {
-      int i = cpt - 1;
-      while (i >= 0) {
-        if (mp_out[i].time > lastStamp) {
-          auto evt = new GHOST_EventCursor(
-              system->getMilliSeconds(), GHOST_kEventCursorMove, window, mp_out[i].x, mp_out[i].y);
-          system->pushEvent(evt);
-        }
-        i--;
-      }
-      lastStamp = mp_out[0].time;
-    }
     return new GHOST_EventCursor(
         system->getMilliSeconds(), GHOST_kEventCursorMove, window, x_screen, y_screen);
   }
@@ -1239,7 +1223,7 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
               sprintf(
                   szTempOutput,
                   TEXT("Mouse: usFlags=%04x ulButtons=%04x usButtonFlags=%04x usButtonData=%04x "
-                       "ulRawButtons=%04x lLastX=%04x lLastY=%04x ulExtraInformation=%04x\r\n"),
+                       "ulRawButtons=%04x lLastX=%d lLastY=%d ulExtraInformation=%04x\r\n"),
                   raw.data.mouse.usFlags,
                   raw.data.mouse.ulButtons,
                   raw.data.mouse.usButtonFlags,
@@ -1249,6 +1233,13 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
                   raw.data.mouse.lLastY,
                   raw.data.mouse.ulExtraInformation);
 
+              // auto evt = new GHOST_EventCursor(system->getMilliSeconds(),
+              //                                 GHOST_kEventCursorMove,
+              //                                 window,
+              //                                 mp_out[i].x,
+              //                                 mp_out[i].y);
+              // system->pushEvent(evt);
+
               OutputDebugString(szTempOutput);
               break;
 #ifdef WITH_INPUT_NDOF



More information about the Bf-blender-cvs mailing list