# How to set up tilt input axis mappings for mobile devices?

**URL:** <https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750>\
**Category:** World Creation\
**Tags:** gravity, tilt, unreal-engine, acceleration, Physics, Android, question\
**Created:** [April 26, 2014, 8:47pm UTC](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750 "2014-04-26T20:47:03Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![pleaseluggage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pleaseluggage](https://forums.unrealengine.com/u/pleaseluggage)\
**Post date:** [March 16, 2015, 3:36am UTC](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750/21 "2015-03-16T03:36:40Z")

</div>

Since I’m a noob, I can’t make the leap from making objects tilt based on my device’s tilt and controlling my player. Ultimately, I’d like to get my scene started as a FPS scenario (but not with the gun). I’ve figured out how to drop the FPS BP class into the scene but haven’t yet been able to actually control the player.

Thank you if you have any insights.

---

<div class="post-metadata">

**Author:** ![AlwysAnrchy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlwysAnrchy](https://forums.unrealengine.com/u/AlwysAnrchy)\
**Post date:** [March 16, 2015, 2:39pm UTC](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750/22 "2015-03-16T14:39:41Z")

</div>

Howdy pleaseluggage,

Would you be able to create a new post about being able to control the player in the level? This will provide an update for anyone else attempting to solve the same thing you would be.

Thanks and have a great day!

---

<div class="post-metadata">

**Author:** ![germ1389](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@germ1389](https://forums.unrealengine.com/u/germ1389)\
**Post date:** [April 17, 2015, 3:09pm UTC](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750/23 "2015-04-17T15:09:11Z")

</div>

Any News on this subject? i’m trying to get on the tilt action but it only goes either up and down or right and left. Please Advise.

---

<div class="post-metadata">

**Author:** ![germ1389](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@germ1389](https://forums.unrealengine.com/u/germ1389)\
**Post date:** [April 17, 2015, 3:09pm UTC](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750/24 "2015-04-17T15:09:50Z")

</div>

Any News on this subject? i’m trying to get on the tilt action but it only goes either up and down or right and left. Please Advise.

---

<div class="post-metadata">

**Author:** ![AlwysAnrchy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlwysAnrchy](https://forums.unrealengine.com/u/AlwysAnrchy)\
**Post date:** [April 17, 2015, 5:15pm UTC](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750/25 "2015-04-17T17:15:37Z")

</div>

Howdy germ1389,

this issue has been resolved since this was first reported. What kind of issue would you be having with your device or setup? What version of UE4 would you be using and is that version a source build or a binary build?

Any additional information would be greatly appreciated.

Thanks and have a great day!

---

<div class="post-metadata">

**Author:** ![germ1389](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@germ1389](https://forums.unrealengine.com/u/germ1389)\
**Post date:** [April 17, 2015, 5:31pm UTC](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750/26 "2015-04-17T17:31:10Z")

</div>

I am using a Samsung Galaxy Tab Pro and a Samsung Galaxy S4. The Build is 4.5.3. The setup i’m using is Tilt to get the movement to the rolling ball. Every time i apply the tilt function to the MoveForward Axis Mapping goes Up and Down, and whenever i add tilt function to MoveRight Axis Mapping goes Right and Left. If i put Tilt in the 2 it moves diagonally only. How do i make the tilt make the ball go Up, Down, Left and Right? I’m using 4.5 but willing to go up to 4.7 if needed.

---

<div class="post-metadata">

**Author:** ![AlwysAnrchy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlwysAnrchy](https://forums.unrealengine.com/u/AlwysAnrchy)\
**Post date:** [April 20, 2015, 6:50pm UTC](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750/27 "2015-04-20T18:50:53Z")

</div>

Hey germ1389,

Would you be bale to share a couple screenshots of your Blueprint so I may be able to see what is occurring for you? This will be the best way for myself to debug this issue or help with your setup.

Thanks!

---

<div class="post-metadata">

**Author:** ![germ1389](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@germ1389](https://forums.unrealengine.com/u/germ1389)\
**Post date:** [April 22, 2015, 11:45am UTC](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750/28 "2015-04-22T11:45:31Z")

</div>

There is no blueprints involved, i just added the “Tilt” Key to the Axis Mapping under Input on the Project Settings. Small update: i tried upgrading to the 4.7 but the problem remains.

---

<div class="post-metadata">

**Author:** ![AlwysAnrchy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlwysAnrchy](https://forums.unrealengine.com/u/AlwysAnrchy)\
**Post date:** [April 22, 2015, 1:51pm UTC](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750/29 "2015-04-22T13:51:07Z")

</div>

Hey germ1389,

I have just tested this internally and have been able to see what you have been experiencing. This is working as intended though. If you add tilt to either MoveRight or MoveForward, It is only going to stay along those lines. You would have to set it up in blueprints to correctly reference the tilt of the mobile device.

Think of the mobile device as your keyboard keys. You press ‘W’ to move forward and ‘A’ to move left. If you move them both, you move in a diagonal. This is how tilt is being referenced by adding it to the Axis Mappings. Since it is added to both MoveForward and MoveLeft, this is why the diagonal movement is seen.

Please let me know if you have any additional questions.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a96307a6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a96307a6](https://forums.unrealengine.com/u/anonymous_user_a96307a6)\
**Post date:** [October 29, 2016, 2:26am UTC](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750/30 "2016-10-29T02:26:05Z")

</div>

hi there  
im testing with my android phone huawei and samsung with tilt value, however, the Y axis always returns 0. do you have and clue about that?  
thank you very much!

---

<div class="post-metadata">

**Author:** ![maxdark](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@maxdark](https://forums.unrealengine.com/u/maxdark)\
**Post date:** [February 13, 2020, 8:42am UTC](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750/31 "2020-02-13T08:42:37Z")

</div>

I’m still having this issue with samsung J7 Prime and blueprints. I’m getting only zero values. (2.24.2)

 ![296784-screenshot-2020-02-13-113616.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/e/aee0ec8c9e6d11d0ff6b95fbaaf5fc2f4cddd703.png)

---

<div class="post-metadata">

**Author:** ![shchwarzs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shchwarzs](https://forums.unrealengine.com/u/shchwarzs)\
**Post date:** [May 2, 2020, 7:23am UTC](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750/32 "2020-05-02T07:23:25Z")

</div>

These include a standard dual analog control scheme, two options using tilt control in lieu of touch control for either movement or aiming, and a tilt-only control scheme. Results indicate that while touch-based controls offered the best performance, tilt-based movement control was comparable.

[Previous page](https://forums.unrealengine.com/t/how-to-set-up-tilt-input-axis-mappings-for-mobile-devices/281750.md?page=1)
