# How to get mobile acceleration and GYROSCOPE data

**URL:** <https://forums.unrealengine.com/t/how-to-get-mobile-acceleration-and-gyroscope-data/342557>\
**Category:** Mobile\
**Tags:** Mobile, unreal-engine, Android, question\
**Created:** [December 28, 2015, 9:28am UTC](https://forums.unrealengine.com/t/how-to-get-mobile-acceleration-and-gyroscope-data/342557 "2015-12-28T09:28:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryuikuya](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ryuikuya](https://forums.unrealengine.com/u/ryuikuya)\
**Post date:** [December 28, 2015, 9:28am UTC](https://forums.unrealengine.com/t/how-to-get-mobile-acceleration-and-gyroscope-data/342557/1 "2015-12-28T09:28:17Z")

</div>

How can I get the data of mobile acceleration and GYROSCOPE in c++ of bp. I want to develop android game with acceleration feature

---

<div class="post-metadata">

**Author:** ![Andrew\_Bindraw](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrew_bindraw/32/1008648_2.png) [@Andrew\_Bindraw](https://forums.unrealengine.com/u/Andrew_Bindraw)\
**Post date:** [December 28, 2015, 2:44pm UTC](https://forums.unrealengine.com/t/how-to-get-mobile-acceleration-and-gyroscope-data/342557/2 "2015-12-28T14:44:25Z")

</div>

Hi. Please read this post:

From Blueprint:

> **[Android Use Accelerometer](https://forums.unrealengine.com/questions/109281/android-use-accelerometer.html)**
>
> I want to use my project control with android accelerometer. How can I do it? (exp. flying game control) I have got bad English, sorry.

> **[Accelerometer / Gyroscope support iOS/Andoid](https://forums.unrealengine.com/questions/49795/accelerometer-gyroscope-support-iosandoid.html)**
>
> I was wondering if there is a blueprint or Cpp way to use accelerometer or gyroscope data on mobile devices… I currently build a game that also needs something like this. So question is are there plans or do we develop it our own? 🙂

> **[Sharing Gear VR BP : android orientation -\> camera orientation](https://forums.unrealengine.com/showthread.php?82652-Sharing-Gear-VR-BP-android-orientation-gt-camera-orientation)**
>
> Migrating from Oculus -\> Mobile, this bp set is a mix of things we found and things we cooked ourselves. Each device has its own orientation for the sensors Android != iOS Requires smoothing Below in the attachments are the blueprint...

GetTilt in BP and C++:

> **[FMotionEvent::GetTilt](https://docs.unrealengine.com/5.0/en-US/API/Runtime/SlateCore/Input/FMotionEvent/GetTilt/)**
>
> Returns the current tilt of the device/controller

> **[FMotionEvent::GetAcceleration](https://docs.unrealengine.com/5.0/en-US/API/Runtime/SlateCore/Input/FMotionEvent/GetAcceleration/)**
>
> Returns the 3D acceleration of the device

> **[FViewportClient::InputMotion](https://docs.unrealengine.com/5.0/en-US/API/Runtime/Engine/FViewportClient/InputMotion/)**
>
> Each frame, the input system will update the motion data.

> **[UPlayerInput::InputMotion](https://docs.unrealengine.com/5.0/en-US/API/Runtime/Engine/GameFramework/UPlayerInput/InputMotion/)**
>
> Handles a motion input event. Returns true.
