About Store Forum Documentation Contact
Donations:
140$/mo



Post Reply 
Accelerometer x/y interchanged between devices
Author Message
Scarlet Thread Offline
Member

Post: #1
Accelerometer x/y interchanged between devices
Hi Greg,

Just tested my game on a different device and it seems that the x and y axis of of the accelerator are swapped on some devices. I made the game on my Samsung Galaxy Note 10.1 and then a friend tested on a Samsung Galaxy S3 and the x and y axis were swapped.

Is there any way to detect this? Cheers
01-11-2014 02:21 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Accelerometer x/y interchanged between devices
Hi,

I haven't heard anything about this.
Please note that one device is a tablet, and the other one is a phone.

You can try using D.smallSize to detect the size of the device
01-11-2014 10:30 PM
Find all posts by this user Quote this message in a reply
Scarlet Thread Offline
Member

Post: #3
RE: Accelerometer x/y interchanged between devices
Thanks I'll give it a try and it kinda makes sense because on a phone the standard way to look at it is portrait while on a tablet the standard way to look at it is landscape... So maybe that's how they base the accelerometer.

Worst case scenario I'll just have to have a "First time setup" screen where I ask the player to "tilt left", "tilt right" etc.
(This post was last modified: 01-12-2014 02:14 AM by Scarlet Thread.)
01-12-2014 02:13 AM
Find all posts by this user Quote this message in a reply
Post Reply