# Android GetInputMotionState node not working

**URL:** <https://forums.unrealengine.com/t/android-getinputmotionstate-node-not-working/606372>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Android\
**Created:** [July 16, 2022, 3:37pm UTC](https://forums.unrealengine.com/t/android-getinputmotionstate-node-not-working/606372 "2022-07-16T15:37:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![PieBaron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PieBaron](https://forums.unrealengine.com/u/PieBaron)\
**Post date:** [July 16, 2022, 4:56pm UTC](https://forums.unrealengine.com/t/android-getinputmotionstate-node-not-working/606372/2 "2022-07-16T16:56:32Z")

</div>

the best clue I found so far is that if the phone doesnt have a magnetometer, these inputs will not work ( my phone does not have a magnetometer )

> [@Input Motion State is always 0](https://forums.unrealengine.com/t/input-motion-state-is-always-0/435560/4):
>
> Hi. The Android device must have a magnetometer. If magnetometer is not present in the device, the input motion values are not calculated. This is happening in the lastest versions of the engine. To know if your device has a magnetometer, install a compass app on it. If there is not a magnetometer, the app will fail. If you need to get input motion values in devices without a magnetometer, the GameActivity.java template must be modificated. Take a look to this issue: [Unreal Engine Issues and …](https://issues.unrealengine.com/issue/UE-59537)

Apparently the “GameActivity.java template must be modificated” to make it work, but I dont know how…

I really wish this information was made more clear, I’ve lost 2 evenings trying to figure out this issue.  
We should be allowed to access the sensor data regardless, even if it is folly, if a developer decides to block a functionality we should be made clearly aware.

---

_[View the full topic](https://forums.unrealengine.com/t/android-getinputmotionstate-node-not-working/606372)._
