[Bf-blender-cvs] [6757ca8b40b] master: NDOF: clean up after MinGW removal

Mike Erwin noreply at git.blender.org
Mon May 29 20:06:10 CEST 2017


Commit: 6757ca8b40bcb87cfd710b99bc44e450fff74995
Author: Mike Erwin
Date:   Mon May 29 14:04:46 2017 -0400
Branches: master
https://developer.blender.org/rB6757ca8b40bcb87cfd710b99bc44e450fff74995

NDOF: clean up after MinGW removal

Follow up to 9f044cb422c1fc9ad79278092445f612342abb59

These comments described the difference between Microsoft & MinGW's struct definition. Now that we dropped MinGW we don't need to go into these details.

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

M	intern/ghost/intern/GHOST_SystemWin32.cpp

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

diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp
index ca7118de7b0..9f03b5e9537 100644
--- a/intern/ghost/intern/GHOST_SystemWin32.cpp
+++ b/intern/ghost/intern/GHOST_SystemWin32.cpp
@@ -890,16 +890,7 @@ bool GHOST_SystemWin32::processNDOF(RAWINPUT const &raw)
 	// send motion. Mark as 'sent' so motion will always get dispatched.
 	eventSent = true;
 
-#if defined(_MSC_VER)
-	// using Microsoft compiler & header files
-	// they invented the RawInput API, so this version is (probably) correct.
 	BYTE const *data = raw.data.hid.bRawData;
-	// struct RAWHID {
-	// DWORD dwSizeHid;
-	// DWORD dwCount;
-	// BYTE  bRawData[1];
-	// };
-#endif
 
 	BYTE packetType = data[0];
 	switch (packetType) {




More information about the Bf-blender-cvs mailing list