.----------------. .----------------. .----------------.
| .--------------. || .--------------. || .--------------. |
| | ________ | || | _________ | || | ____ ____ | |
| | |_ ___ `. | || | |_ ___ | | || | |_ _||_ _| | |
| | | | `. \ | || | | |_ \_| | || | \ \ / / | |
| | | | | | | || | | _| | || | > `' < | |
| | _| |___.' / | || | _| |_ | || | _/ /'`\ \_ | |
| | |________.' | || | |_____| | || | |____||____| | |
| | | || | | || | | |
| '--------------' || '--------------' || '--------------' |
'----------------' '----------------' '----------------'
DarknessFX @ https://dfx.lv | Twitter: @DrkFX
This project is discontinued, a new improved project is available at :
https://github.com/DarknessFX/UEPlaystationGamepad
Playstation DualShock 4 For Unreal Engine 5.1 using Raw Input and Enhanced Input.
Originally to make DualShock 4 work with Unreal Engine 4 was just a list of RawInputWindows Plugin settings and was simpler to describe like in this forum post [Tutorial] UE4 using Dualshock4 controller (via USB, PS4 DS4 Gamepad). Now that Unreal Engine 5.1 is moving the input system to Enhanced Input there are more files and structures to setup and isn't that simple to explain in a forum post, so this project is the easier way to share this information and give a demostration template working that can be copied to other projects.
- Only works while DualShock 4 is connected via USB.
- If you have a DualShock4 1st Generation (Product ID 0x05C4) the project will inform you and still work but the DPAD is going to register only one Axis.
- Basic Enhanced Input Action setup (only Buttons and Axes - Pressed and Released), for more information how to expand and create more Input Actions check Enhanced Input - An overview of the Enhanced Input Plugin. and Enhanced Input in UE5 - Official Tutorial.
Unreal Engine from Epic Games - https://www.unrealengine.com/
Playstation DualShock4 Icons by Arks - https://arks.itch.io/ps4-buttons
CorentinG78 for sharing the initial DS4+EnhancedInput+RawInput - https://forums.unrealengine.com/t/tutorial-ue4-using-dualshock4-controller-via-usb-ps4-ds4-gamepad/133314/54
@Unlicensed - Free for everyone and any use.
DarknessFX @ https://dfx.lv | Twitter: @DrkFX
https://github.com/DarknessFX/DualShock4-For-Unreal-Engine-5