For fellow devs that use Playstation gamepads with #UnrealEngine , you can add this code to RawInput Plugin and make CommonUI+EnhancedInput accept Dualshock4 and Dualsense D-Pad buttons like any other gamepad.
UE4 HTML5 Twin-stick wave shooter from C++ Tanks VS Zombies Unreal Engine Live Training.