Forum Discussion

Francesco_Paolo_Torre's avatar
Francesco_Paolo_Torre
Copper Contributor
Nov 03, 2021

Magic Trackpad 2 and multitouch in Android emulator

In reference to https://devblogs.microsoft.com/surface-duo/android-emulator-multi-touch-support/

I was trying to use the app I am the developer of (Ink&Paper) on the android emulator with a Cintiq 16 on a mac. Everything works except using the Magic Trackpad 2, which has unexpected behavior. I don't know if it's a device type issue but I think it's more likely common to all trackpads. However it would be nice if it was implemented in the correct way (it works well in Bluestacks but it is a completely different type of emulator). Regards.

4 Replies

  • Hi Francesco_Paolo_Torre,
    Thank you very much for your feedback!
    My name is Andrei, part of the Surface Duo DevX team.
    As we understand, you can use the graphical tablet and pen to draw in your app running in the Android Emulator, but you cannot zoom or swipe in the app using the trackpad gestures, is this correct ?
    I just checked this on my Surface Laptop and I get the same behavior,
    the two finger pinch touchpad gesture does not translate to the emulator.
    Unfortunately, touchpad gestures were not a part of our multitouch contribution to the Android Emulator project, mainly because they are not standardized across operating systems.
    For me, on Surface, two finger touchpad swipe translates into vertical swipe in the emulator and also tap three times and hold then move translates in pinch to zoom.
    You can also use the old pinch to zoom method in the emulator: press Ctrl (or command on Mac) + touchpad button press, then move in or out.
    All the best,

    • Francesco_Paolo_Torre's avatar
      Francesco_Paolo_Torre
      Copper Contributor
      Thank you for the response. I suggest you to implement trackpad functionality starting from raw inputs and using as behavior what a trackpad would do on Android system (since it is an Android emulator). This is what happens for example on Chromebooks and would make sense to me, but maybe there are technical limitations that I cannot understand.

      Best regards,

      Francesco
  • tscholze's avatar
    tscholze
    Iron Contributor

    Hi Francesco_Paolo_Torre,

    which emulator do you use? The Surface Duo 1 or 2? (A10 or A11?). Maybe I can try to check if this happens on my side, too.

     

    Just for me, do you have a M1 Mac? If yes, could you please tell me how do you got the emulator running on this machine?

    • Francesco_Paolo_Torre's avatar
      Francesco_Paolo_Torre
      Copper Contributor
      The emulator is the last version, 30.9.5, on an Intel Mac (as far as I know virtualization doesn't work on M1 chip). I don't own Surface, but I believe my app (https://play.google.com/store/apps/details?id=com.inkandpaper.trial) can work if multitouch is implemented. Can you check it for me?
      Go to preferences (long press the library button in the editor, or press the gear button in the library) uncheck 'fingers only mode' and see if you can write with the stylus. See if you can zoom and move the page with two fingers. The trackpad if used with two fingers should still allow you to zoom the page, but as far as I know it does not work properly. Thanks for the reply.

Resources