Przeglądaj źródła

Fixed a bug in touch simulation in input core

Ivan Safrin 10 lat temu
rodzic
commit
5b43e0b918
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      Core/Contents/Source/PolyCoreInput.cpp

+ 3 - 1
Core/Contents/Source/PolyCoreInput.cpp

@@ -212,10 +212,12 @@ namespace Polycode {
 			std::vector<TouchInfo> touches;
 			std::vector<TouchInfo> touches;
 			touches.push_back(touch);
 			touches.push_back(touch);
 
 
+            /*
 			if(!mouseButtons[MOUSE_BUTTON1]) {
 			if(!mouseButtons[MOUSE_BUTTON1]) {
 				mouseButtons[MOUSE_BUTTON1] = true;
 				mouseButtons[MOUSE_BUTTON1] = true;
 				touchesBegan(touch, touches, ticks);
 				touchesBegan(touch, touches, ticks);
-			}										
+			}
+             */
 			touchesMoved(touch, touches, ticks);
 			touchesMoved(touch, touches, ticks);
 		}		
 		}		
 	}
 	}