Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Use TouchScript for Tablet & Desktop Input

Discussion in 'Scripting' started by gretty, Jan 12, 2015.

  1. gretty


    Jun 20, 2012

    Does anyone use TouchScript to handle both Touch and Desktop (Mouse) input? If you do; how do you manage or implement this?

    On Desktop:
    TouchScript 'straight out of the box' can handle panning with the mouse - you can hold down 'Left Mouse Button' and drag around. But for Rotation and Scaling; you need to hold down 'Alt' then click twice. Is there a way to make TouchScript detect 'Right Mouse Button' dragging as Rotation Gestures? Maybe we need to make our own Gesture? Or is there a simple setting? Similarly, is there a way to make the 'Mouse Scroll Wheel' trigger Scale Gestures?

    Whats the best way to achieve this functionality in TouchScript? Is it by making our own Gestures? For example we make the Gesture 'Right Click' that relays mouse positions as Rotation gestures?