# Gamepad doesn't work in play mode but works in editor

**URL:** <https://forums.unrealengine.com/t/gamepad-doesnt-work-in-play-mode-but-works-in-editor/480365>\
**Category:** Platform & Builds\
**Tags:** gamepad, unreal-engine, PS4, question\
**Created:** [March 16, 2021, 2:03am UTC](https://forums.unrealengine.com/t/gamepad-doesnt-work-in-play-mode-but-works-in-editor/480365 "2021-03-16T02:03:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Callideus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Callideus](https://forums.unrealengine.com/u/Callideus)\
**Post date:** [March 16, 2021, 2:03am UTC](https://forums.unrealengine.com/t/gamepad-doesnt-work-in-play-mode-but-works-in-editor/480365/1 "2021-03-16T02:03:01Z")

</div>

I use DS4windows to test with a ps4 controller via usb in editor. I also recently uninstalled and reinstalled UE4 on a different drive on the same machine for the memory. My setup worked just fine before that, but now my ps4 remote doesn’t work during play mode unless I restart my computer and leave it plugged in. Then if I unplug it and plug it back in, it doesn’t work anymore. Except the touchpad, which it only recognizes as mouse movement. Also, despite all this, it always lets me navigate in editor (like using wasd to explore in freecam) and my machine recognizes the remote as an xbox remote, so it isn’t the DS4windows software. I haven’t changed anything in the project, so I don’t know why it isn’t working.  
How to I make it so I don’t have to restart my machine whenever I want to test with a gamepad?

---

<div class="post-metadata">

**Author:** ![tarcus2k](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tarcus2k](https://forums.unrealengine.com/u/tarcus2k)\
**Post date:** [November 22, 2021, 3:43pm UTC](https://forums.unrealengine.com/t/gamepad-doesnt-work-in-play-mode-but-works-in-editor/480365/2 "2021-11-22T15:43:29Z")

</div>

Exact same issue here, no idea how to fix this. Tried rebooting, reinstalling DS4 and reinstalling UE (got this on 4.27)

---

<div class="post-metadata">

**Author:** ![ilya.83](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ilya.83](https://forums.unrealengine.com/u/ilya.83)\
**Post date:** [February 17, 2022, 9:28am UTC](https://forums.unrealengine.com/t/gamepad-doesnt-work-in-play-mode-but-works-in-editor/480365/3 "2022-02-17T09:28:52Z")

</div>

Try to click somewhere in the game viewport when in the Play mode. It will set the input focus the the game viewport and the controller should start working…
