![]() |
|
Move Camera with Touch screen - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: Ab3d.PowerToys (https://forum.ab4d.com/forumdisplay.php?fid=9) +--- Thread: Move Camera with Touch screen (/showthread.php?tid=4075) |
Move Camera with Touch screen - leonardo - 01-22-2018 Hello, I have a touchscreen only display (no mouse available), there is a way to easily pan camera using MouseCameraController? I tried MoveCameraConditions="RightMouseButtonPressed" but right click with touch screen is very difficult. There is a way to handle multipoint touchscreen? I hope to pan when user press two points (like when zooming) and then drag the screen. Thank you Leonardo RE: Move Camera with Touch screen - abenedik - 01-22-2018 You can enable touch moving with 3 fingers with setting the IsTouchMoveEnabled to true (two fingers are used for pinch zoom). What is more, you can also fully customize when and which touch events start rotation, movement or zooming. All you need to do is derive your own class from MouseCameraController and override the GetManipulationActions method - there you will be able to set isMoving to true when two fingers are touching the screen. To make the change easier you can check the original source code of the method: Code: /// <summary>RE: Move Camera with Touch screen - leonardo - 01-23-2018 Thank you very much, I had not noticed that pan is with three fingers. It works. Thank you |