Skip to main content
GameDev.net gamedev.net
🔒 Locked 🎮 Unity

Mobile Input Automatically Inverted

Started by gretty Aug 13, 2014 at 3:09 AM 0 replies 1.2k views
Original Post
gretty
gretty

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?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.