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

Mobile Input Automatically Inverted

Discussion in 'Scripting' started by gretty, Aug 13, 2014.

  1. gretty

    gretty

    Joined:
    Jun 20, 2012
    Posts:
    72
    Hello

    I am using TouchScript for my games input - panning around a 3d environment. For some reason the Windows 8 Tablet input is inverted. Note when I run the app in the Unity3d Editor on my Windows 7 laptop the input is NOT inverted.

    When I say inverted I mean:

    • By dragging your finger left the camera moves left. The vast majority of apps would move the camera right when the user drags left. This is how Bing Maps responds.
    • By dragging your finger up the camera moves up. The vast majority of apps would move the camera down when the user drags down.
    • Pinching fingers together zooms in the camera. When it should zoom out.
    I haven't done anything that I know of the cause this inversion.

    Setup:
    • GameObject 'CameraContainer' has the components: Transformer2d, FullScreenLayer, PanGesture, ScaleGesture, PressGesture.
    • GameObject 'MainCamera' is nested inside the 'CameraContainer' object and has the components: Camera.
    • GameObject 'TouchScript' has the components: TouchManager
    • GameObject 'Input' is nested inside the 'TouchScript' object and has the components: MobileInput, MouseInput and Win8TouchInput.

    Any ideas what has caused this and/or how I can invert the input controls?
     
  2. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    Contact the TouchScript author.
     
unityunity