Search Unity

Use TouchScript for Tablet & Desktop Input

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

  1. gretty

    gretty

    Joined:
    Jun 20, 2012
    Posts:
    72
    Hello

    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?