# AppleTV Gamepad Mapped Incorrectly

**URL:** <https://forums.unrealengine.com/t/appletv-gamepad-mapped-incorrectly/362606>\
**Category:** Platform & Builds\
**Tags:** gamepad, trigger, unreal-engine, question\
**Created:** [July 1, 2016, 2:15pm UTC](https://forums.unrealengine.com/t/appletv-gamepad-mapped-incorrectly/362606 "2016-07-01T14:15:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_48f2118e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_48f2118e](https://forums.unrealengine.com/u/anonymous_user_48f2118e)\
**Post date:** [July 1, 2016, 2:15pm UTC](https://forums.unrealengine.com/t/appletv-gamepad-mapped-incorrectly/362606/1 "2016-07-01T14:15:36Z")

</div>

I’m using UE 4.12.4 built from source on a Mac. I’m working on an AppleTV project.

When I deploy to the AppleTV, the gamepad (SteelSeries Nimbus, nicest bluetooth AppleTV gamepad I could find) has some of its inputs mapped incorrectly:

- Right Trigger Axis: COMPLETELY IGNORED
- ~~Left Shoulder: INCORRECTLY interpreted as Gamepad Special Left~~ _This part was due to an error in my project input mappings_

I would appreciate and help/advice/pointers to documentation/pointers to source code so that I can get this gamepad working properly.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_48f2118e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_48f2118e](https://forums.unrealengine.com/u/anonymous_user_48f2118e)\
**Post date:** [July 7, 2016, 3:02am UTC](https://forums.unrealengine.com/t/appletv-gamepad-mapped-incorrectly/362606/2 "2016-07-07T03:02:42Z")

</div>

I bought a second controller: Horipad Ultimate. Officially listed as an AppleTV controller - bought through [Apple.com](http://Apple.com) (just like the Nimbus). It behaves identically to the Nimbus. That is to say, it works perfectly in anything except Unreal Engine.

I have searched through the codebase for awhile but I haven’t been able to find the place that devices on AppleTV are handled.

Help, please!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [July 7, 2016, 6:30pm UTC](https://forums.unrealengine.com/t/appletv-gamepad-mapped-incorrectly/362606/3 "2016-07-07T18:30:47Z")

</div>

,

UE-30544 has been entered into , it seems that tvOS remote doesn’t map to gamepad inputs correctly. We’re hoping to resolve this as soon as we can, but we can’t make any promises on when it’ll be released.

Thank you!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_48f2118e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_48f2118e](https://forums.unrealengine.com/u/anonymous_user_48f2118e)\
**Post date:** [July 7, 2016, 6:57pm UTC](https://forums.unrealengine.com/t/appletv-gamepad-mapped-incorrectly/362606/4 "2016-07-07T18:57:58Z")

</div>

If you (or a developer who knows) could point me to where in the engine code that is handled, I would be willing to try to fix it myself and submit a patch. This seems like a pretty big show-stopper for tvOS, given that the gamepad is the only “usable” input device on an AppleTV.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [July 7, 2016, 9:39pm UTC](https://forums.unrealengine.com/t/appletv-gamepad-mapped-incorrectly/362606/5 "2016-07-07T21:39:56Z")

</div>

BaseInput.ini is where you can edit the control settings/player input. Have you already modified that file?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_48f2118e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_48f2118e](https://forums.unrealengine.com/u/anonymous_user_48f2118e)\
**Post date:** [July 7, 2016, 9:50pm UTC](https://forums.unrealengine.com/t/appletv-gamepad-mapped-incorrectly/362606/6 "2016-07-07T21:50:27Z")

</div>

BaseInput.ini is a settings file. The problem is that the gamepad on AppleTV doesn’t map triggers to triggers and shoulder buttons to shoulder buttons. I mean I need to know where in the actual C++ code that an event from a gamepad would be assigned to, for example, a shoulder button. I would guess that there would be platform-specific code for translating inputs on Windows vs. Playstation vs. AppleTV (for example) to the standard inputs presented to the developer.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_48f2118e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_48f2118e](https://forums.unrealengine.com/u/anonymous_user_48f2118e)\
**Post date:** [July 11, 2016, 3:39pm UTC](https://forums.unrealengine.com/t/appletv-gamepad-mapped-incorrectly/362606/7 "2016-07-11T15:39:23Z")

</div>

I fixed it! The [attached patch (click here)][1] will add mappings for the analog triggers, which were being ignored. Now my analog trigger input works properly.

By far the most difficult part of this fix was finding the correct file, which took a _very, very, very long time_: `Engine/Source/Runtime/Core/Private/IOS/IOSInputInterface.cpp`

**What is the best way for me to submit a patch and get it accepted?** I have [submitted patches before, which have not yet been accepted][2]. What is the best way for me to get a patch actually accepted? Should the patch be against the `master` branch? Are there some process steps I should go through? Silence doesn’t help me here, which is all I have gotten so far every time I have asked.

The left shoulder button problem was a red herring. I had accidentally added the left shoulder button mapping to one of my inputs in my project (along-side the left special button).

[98030-appletvanalogtrigger.txt](https://forums.unrealengine.com/uploads/short-url/dWGRx0sjmAleCUUhlz8MHuzeM5w.txt) (980 Bytes)  
[2]: [https://github.com/EpicGames/UnrealEngine/pull/2380](https://github.com/EpicGames/UnrealEngine/pull/2380)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_48f2118e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_48f2118e](https://forums.unrealengine.com/u/anonymous_user_48f2118e)\
**Post date:** [July 12, 2016, 12:36am UTC](https://forums.unrealengine.com/t/appletv-gamepad-mapped-incorrectly/362606/8 "2016-07-12T00:36:41Z")

</div>

I made [pull request 2594][1] with the fix.

[https://github.com/EpicGames/UnrealEngine/pull/2594](https://github.com/EpicGames/UnrealEngine/pull/2594)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [July 12, 2016, 9:24pm UTC](https://forums.unrealengine.com/t/appletv-gamepad-mapped-incorrectly/362606/9 "2016-07-12T21:24:36Z")

</div>

,

I have added this to the and the Developers should see this. Thank you so much for sharing your fix! 🙂

-

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_48f2118e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_48f2118e](https://forums.unrealengine.com/u/anonymous_user_48f2118e)\
**Post date:** [July 27, 2016, 8:36pm UTC](https://forums.unrealengine.com/t/appletv-gamepad-mapped-incorrectly/362606/10 "2016-07-27T20:36:35Z")

</div>

, UE-30544 has not yet been made public on . Can we make that one public?
