User(s) browsing this thread: 16 Guest(s)

Post Reply 
 
Thread Rating:
  • 25 Vote(s) - 4.68 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DS4 To XInput Wrapper
Author Message
InhexSTER Offline
Senior Member
***

Posts: 396
Joined: Nov 2013
Location:
Reputation: 51
Post: #1
DS4 To XInput Wrapper
Hello guys, I am new here but I want to share a tool I made for Dualshock 4 controllers. I was inspired by the tool made by Scarlet.Crush for DS3.

My tool works in a similar fashion and is based on source code from DS3 Scp Tool.

I am no longer actively developing this, so check other forks of this for newer versions.

It works though without messing with the original drivers for DS4. Uses HID Protocol to XInput mapping. You still need to install drivers for SCP virtual bus device and possibly X360 Controller drivers.

[Image: FEvv8lq.png]

The whole project is in beta so please keep in mind there will be some bugs.

Make sure you have:

1. Microsoft .NET 4.0
2. Visual C 2010/2012 Runtime.
3. Latest DirectX Runtime.
4. Latest Official Microsoft Xbox 360 Controller Drivers available.
5. Minimum of Bluetooth 2.1 + EDR Dongle (if using Bluetooth).
6. Administrator rights on your PC.
7. Make sure you quit all other apps/games that can use the controller
(Steam/Uplay/TeamSpeak, etc) if you are using Hide DS4 controller option
8. Having MotionJoy drivers installed seem to cause issues for some people
9. This tool can't run at the same time as DS3 SCP server gui or service at this moment
10. Bluetooth Drivers from Microsoft or other driver that use Microsoft Bluetooth Stack


11 BEFORE ASKING QUESTION DOWNLOAD XinputTest and see if all buttons work. (A LOT OF GAMES REQUIRE HIDE DS4 TO BE ON)
IF XinputTest shows everything correctly the problem is with the game!

Explanation on what HIDE DS4 CONTROLLER checkbox does:
http://forums.pcsx2.net/Thread-DS4-To-XI...#pid346076

Source code : https://code.google.com/p/ds4-tool/

Next update:

Please when anyone asking for help provide this:

Connection type: USB/BT
Windows Version
DS4 Tool Version
Are you using Exclusive vs Shared mode ( is Hide DS4 Controller checkbox enabled)
Make sure if USB works first, only then try BT



The Dark Souls is quite buggy port from consoles. So don't expect it to work flawlessly.
Before starting Dark Souls make sure:
xinput*.dll is not present in your game folder (having X360ce will break things)
You have started the tool with Hide DS4 Controller on
In Devices and Printers from Control Panel (Game Controllers menu) make sure that X360 Controller is only one visible)
At this moment we do not support running DS3 and DS4 simultaneously, so make sure only DS4 is connected
The X360 Controller supports both Xinput and DirectInput so its up to game which one to use

I am 100% positive that everything works if you do everything correctly.
People asking about Dark Souls will be ignored or will receive a wearing.
As the topic was covered over few dozen posts


Direct Input Emulation:
There is a limited support of DirectInput in X360 Controller. No Vibration and triggers act different. Other option is to use of contoller without a tool and using in game settings to map buttons. Some games support it. Again no vibration as that's how DS4 DirectInput is defined.

There is no plans to add virtual DirectInput device at the moment. As it would requite reverse engineering another controller and emulating it on the virtual bus driver. At the moment I am relying on Scarlet.Crush's code to emulate X360 and he definitely knows more about it. But he doesn't support emulating DirectInput devices in his tool as well.


Attached File(s)
.zip  DS4Tool.zip (Size: 716,82 KB / Downloads: 179960)
.zip  DS4Tool_1.1_Beta_1.zip (Size: 664 KB / Downloads: 10651)
.zip  DS4_1.1_Beta1_Update 2.zip (Size: 669,02 KB / Downloads: 35567)
.zip  DS4Tool_1.1_Beta_2 Update 1.zip (Size: 730,67 KB / Downloads: 10188)
.zip  DS4Tool_1.1_Beta_3.zip (Size: 718,69 KB / Downloads: 45366)
.zip  DS4Tool_1.1_Final.zip (Size: 710,6 KB / Downloads: 25100)
.zip  DS4Tool 1.2.zip (Size: 717,22 KB / Downloads: 40823)
.zip  DS4Tool 1.2.1.zip (Size: 1,74 MB / Downloads: 15961)
.zip  XInputTest.zip (Size: 36,26 KB / Downloads: 31107)
.zip  DS4Tool 1.2.2.zip (Size: 1,74 MB / Downloads: 318622)
(This post was last modified: 07-17-2014 10:08 PM by InhexSTER.)
11-08-2013 06:25 PM
Find all posts by this user Quote this message in a reply

Sponsored links

InhexSTER Offline
Senior Member
***

Posts: 396
Joined: Nov 2013
Location:
Reputation: 51
Post: #2
RE: DS4 To XInput Wrapper
Here is youtube demo video, http://www.youtube.com/watch?v=pNk36TOQfuk
11-09-2013 06:30 AM
Find all posts by this user Quote this message in a reply
Asmodean Away
★( `_´)乂(`_´ )★
******

Posts: 536
Joined: Jan 2012
Location: Ireland
Reputation: 38
Post: #3
RE: DS4 To XInput Wrapper
Input filter/wrapper applications are always very useful. I'm sure this will be most welcome, once more people have gotten their hands on the DS4. Thanks for the contribution.

How are you finding the DS4?. Any apparent, non-PS4 specific improvements over the DS3? Such as the feel, the analog etc. I'm planning on getting one myself soon, for PC use.

PCSX2: Widescreen Patches
GSDX: GSdx FX Shaders
11-09-2013 08:07 AM
Find all posts by this user Quote this message in a reply
InhexSTER Offline
Senior Member
***

Posts: 396
Joined: Nov 2013
Location:
Reputation: 51
Post: #4
RE: DS4 To XInput Wrapper
Definitely an improvement from DS3. Feels more firmly in hands and feels more solid compared to creaky old controller. Kinda feels solid on inside instead how DS3 was hollow. Triggers also better, one thing feels unusual is placement of Options and Share buttons which are equivalent to select/start.

Dualshock 4 now is for sale in a lot of retail stores. I got one to use with PC and PS4 for coop games
11-09-2013 03:04 PM
Find all posts by this user Quote this message in a reply
OminaeYu Offline
Spriggan
*

Posts: 40
Joined: Jan 2009
Location: PA
Reputation: 0
Post: #5
RE: DS4 To XInput Wrapper
I'm glad this exists. Thanks for your work InhexSTER. Hopefully you'll be able to get rumble and the like working if you plan to go that far.

CPU: Intel Core i5 2500k @ 4.5GHz Mobo: ASRock Z68 Extreme3 Gen3 | GPU: Gigabyte GTX 670
Memory: G.SKILL Sniper Series 8GB DDR3 @ 1866MHz | Monitor: Samsung 46" 1080p LED 3DTV | OS: Windows 7 x64
11-09-2013 04:08 PM
Find all posts by this user Quote this message in a reply
Trace Bullet Offline
Newbie

Posts: 1
Joined: Nov 2013
Location:
Reputation: 0
Post: #6
RE: DS4 To XInput Wrapper
Thanks for making this!

One suggestion: can you bind the Xbox guide button to the PS button or the touch pad button?
11-09-2013 08:44 PM
Find all posts by this user Quote this message in a reply
InhexSTER Offline
Senior Member
***

Posts: 396
Joined: Nov 2013
Location:
Reputation: 51
Post: #7
RE: DS4 To XInput Wrapper
(11-09-2013 08:44 PM)Trace Bullet Wrote:  Thanks for making this!

One suggestion: can you bind the Xbox guide button to the PS button or the touch pad button?

Yeah should be easy to do, will upload new version shortly
11-10-2013 04:23 PM
Find all posts by this user Quote this message in a reply
Grimnir Offline
Junior Member
*

Posts: 44
Joined: Nov 2013
Location:
Reputation: 1
Post: #8
RE: DS4 To XInput Wrapper
Great job mate! I'm a huge fan of the scarlet.crush drivers for using my Ds3 on my PC and have been waiting for someone to make something similar as soon as I heard the Ds4 getting PC support.

I know this current version has no rumble support and I do play a game where I need that function. I was wondering if you had any plans to implement rumble support in the (Hopefully) near future?
11-10-2013 08:54 PM
Find all posts by this user Quote this message in a reply
InhexSTER Offline
Senior Member
***

Posts: 396
Joined: Nov 2013
Location:
Reputation: 51
Post: #9
RE: DS4 To XInput Wrapper
(11-10-2013 08:54 PM)Grimnir Wrote:  I was wondering if you had any plans to implement rumble support in the (Hopefully) near future?

I was planning to invistigate that further, I have been able to read/write byte data to device but i need to find exact locations where rumble values are stored. The issue with that approach it would most likely require custom drivers for usb device same it was in DS3 and for bluetooth. (WinUsb drivers). Official drivers for windows don't list controller as Force Feedback capable.
(This post was last modified: 11-10-2013 09:27 PM by InhexSTER.)
11-10-2013 09:24 PM
Find all posts by this user Quote this message in a reply
wondroushippo Offline
Newbie

Posts: 1
Joined: Nov 2013
Location:
Reputation: 0
Post: #10
RE: DS4 To XInput Wrapper
I specifically registered to reply to say that I love you, InhexSTER.
11-11-2013 09:18 AM
Find all posts by this user Quote this message in a reply
Post Reply 





Current time: 11-01-2014, 05:46 AM