Sign in to follow this  
gretty

Unity Mobile Input Automatically Inverted

Recommended Posts

gretty    273

Hello

I am using TouchScript for my Unity3d game 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?

Edited by gretty

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this