Kindle Fire HD didAccelerate X value is negative tilting to right

Anyone know why Kindle Fire HD didAccelerate X value is negative when tilting to right and Nexus 7 and iOS X value are positive. How can i get them the same? I am on cocos2d-x-2.1.5

Any help will be greatly appreciated!

Hi, I’m not sure this problem is existed because I don’t have a “Kindle Fire HD”.

Any way, if the problem is really happened. I think the only one solution is:

  1. Get the device model in your game/app logic. (For example: by the Build.MODEL in java code)
  2. If the device is “Kindle Fire HD”. Use the didAccelerate X value as positive value.

Hope it’s helpful. :slight_smile:

Hi Bin!

Thanks for the reply and help. I was hoping I don’t have to do anything special for Kindle Fire devices, but your solution seems to be a good fix.