Scarlet Thread
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
Scarlet Thread
Member
|
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.
|
|
01-12-2014 02:13 AM |
|