[Title] clear multi-touch when sdl init
authorgiwoong.kim <giwoong.kim@samsung.com>
Fri, 13 Jul 2012 12:24:43 +0000 (21:24 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Fri, 13 Jul 2012 12:24:43 +0000 (21:24 +0900)
[Type] enhancement
[Module] Emulator / touch
[Priority] major
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/src/maru_sdl.c
tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java

index 39e08f71e60ee5d87031d9c4fc6e1f3141fff3cd..3e617f83e515aced39b0183f98be11a580d398bc 100644 (file)
@@ -127,6 +127,10 @@ static void _sdl_init(void)
         glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
         glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
     }
+
+    /* remove multi-touch finger points */
+    get_emul_multi_touch_state()->multitouch_enable = 0;
+    clear_finger_slot();
 }
 
 static int point_degree = 0;
index 205d55898685bebeb1cf6c7050e736809a0c74b9..041f0f6363ea55d5adb8545f0c9fa2d34b6c3654 100644 (file)
@@ -1655,10 +1655,6 @@ public class EmulatorSkin {
 
                                short rotationId = ( (Short) item.getData() );
 
-                               /* remove multi-touch finger points */
-                               KeyEventData clearMultiTouch = new KeyEventData(KeyEventType.RELEASED.value(), SWT.CTRL, SWT.LEFT);
-                               communicator.sendToQEMU(SendCommand.SEND_KEY_EVENT, clearMultiTouch);
-
                                arrangeSkin( currentLcdWidth, currentLcdHeight, currentScale, rotationId );
                                LcdStateData lcdStateData = new LcdStateData( currentScale, rotationId );
                                communicator.sendToQEMU( SendCommand.CHANGE_LCD_STATE, lcdStateData );