Browse Source

Mouse touch emulation tweak

Ivan Safrin 10 years ago
parent
commit
0def37325a
1 changed files with 4 additions and 12 deletions
  1. 4 12
      Core/Contents/Source/PolyCoreInput.cpp

+ 4 - 12
Core/Contents/Source/PolyCoreInput.cpp

@@ -203,23 +203,15 @@ namespace Polycode {
 		dispatchEvent(evt, InputEvent::EVENT_MOUSEMOVE);
 		
 		if(simulateTouchWithMouse) {
-		
-		
-		
 			TouchInfo touch;
 			touch.position = mousePosition;
 			touch.id = 0;			
 			std::vector<TouchInfo> touches;
 			touches.push_back(touch);
-
-            /*
-			if(!mouseButtons[MOUSE_BUTTON1]) {
-				mouseButtons[MOUSE_BUTTON1] = true;
-				touchesBegan(touch, touches, ticks);
-			}
-             */
-			touchesMoved(touch, touches, ticks);
-		}		
+			if(mouseButtons[MOUSE_BUTTON1]) {
+                touchesMoved(touch, touches, ticks);
+            }
+		}
 	}
 	
 	Vector2 CoreInput::getMouseDelta() {