Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 3.57 KB

README.md

File metadata and controls

48 lines (34 loc) · 3.57 KB
 .----------------.  .----------------.  .----------------. 
| .--------------. || .--------------. || .--------------. |
| |  ________    | || |  _________   | || |  ____  ____  | |
| | |_   ___ `.  | || | |_   ___  |  | || | |_  _||_  _| | |
| |   | |   `. \ | || |   | |_  \_|  | || |   \ \  / /   | |
| |   | |    | | | || |   |  _|      | || |    > `' <    | |
| |  _| |___.' / | || |  _| |_       | || |  _/ /'`\ \_  | |
| | |________.'  | || | |_____|      | || | |____||____| | |
| |              | || |              | || |              | |
| '--------------' || '--------------' || '--------------' |
 '----------------'  '----------------'  '----------------' 

       DarknessFX @ https://dfx.lv | Twitter: @DrkFX

Playstation Gamepad For Unreal Engine 5.2


Playstation Gamepad For Unreal Engine 5.2 using Raw Input and Enhanced Input. This project is setup to enable DualShock3/Sixaxis, DualShock4 and DualSense controllers to bind with Unreal Engine Gamepad object, you can use your Playstation controllers for Gameplay, CommonUI, EnhancedInput with the same Gamepad code like other XInput gamepads instead of fork to GenericUSBController.

About

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.2 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 demonstration template working that can be copied to other projects.

Notes

RawInput Changes

Download and update this files from RawInput Plugin:
RawInputWindows.h
RawInputWindows.cpp

Compile RawInput plugin with this updates to apply fixes and make full use of Playstation Gamepads as Native Unreal Engine Gamepads.

Credits

Unreal Engine from Epic Games - https://www.unrealengine.com/
Playstation DualShock4 Icons by Arks - https://arks.itch.io/ps4-buttons
Equ1no0x - DualShock4 Gen1 contribution.

License

@Unlicensed - Free for everyone and any use.

DarknessFX @ https://dfx.lv | Twitter: @DrkFX
https://github.com/DarknessFX/UEPlaystationGamepad