XInput Wrapper for DS3 and Play.com USB Dual DS2 Controller
#1
Note by Blyss Sarania: Scarlet.Crush hasn't logged on to the forum in 5 months, and there hasn't been an update to this project in a while. The wrapper works well enough as is, but there has been an unofficial continuation of the project here. Note that Scarlet.Crush is not involved in that, it's just a continuation of the project based on his source. You can either use Scarlet.Crush's version which is found here in this post, or you can use the updated version in the thread previously linked. Choose whatever suits your needs best. End note.

Updated : New version released 1.2.0.160. See post  #2505.

Updated : Update Available 1.2.1.165 - WinXP compatibility for ScpUser.exe/XInput1_3.dll, Service Channel Bypass feature added, Proof of Concept KBM mapping sample added. See Post #2574.

Updated : Update Available 1.2.2.175 - Includes all previous Updates. Added Fixup for 00:26:5C signature, Renamed ScpPad2Key -> GtaMapper, added DskMapper & D3Mapper samples. Refactored & moved common functionality into ScpControl.dll. See Post #2702.

Download latest version here. [1.2.0.160]

Download latest update here. [1.2.2.175]
Download latest source here. [1.2.2.175]

Requirements
1. Microsoft .NET 4.0
2. Visual C 2013 Runtime.
3. Latest DirectX Runtime.
4. Latest Xbox 360 Controller Drivers available.
5. Genuine Sony DualShock3 or DualShock4 or SixAxis Controller(s).
6. Minimum of Bluetooth 2.0 + EDR Dongle (if using Bluetooth).
7. Administrator rights on your PC.

Note : The Bluetooth Driver requires that you dedicate a Bluetooth Dongle to DS3/DS4 use. It will not be usable by other Bluetooth devices after the driver has been installed.

Important - make sure your Bluetooth dongle and DS3(s) are plugged in via USB before installing the drivers.

Xbox 360 Controller Drivers - these are available from Microsoft here.
Windows 7 - Run before installing the SCP Drivers. (Windows 7 shipped with outdated drivers which may cause stability issues)
Windows XP and Vista - Run after after installing the SCP Drivers.
Windows 8/8.1 not required.

New Install
1. Connect your Dongle and DS3 via USB and let Windows install it's default drivers.
2. Copy the archive to a temporary directory [eg C:\Temp].
3. Right click on the archive and select Properties.
4. Click the Unblock button if it is displayed on the General tab.
5. Unpack the archive.
6. Create a directory where you want the Service to run from. [Recommended - C:\Program Files\Scarlet.Crush Productions *]
7. Copy the contents of the ScpServer\bin to the directory you created.
8. Run ScpDriver.exe.
9. XP/Vista - check the Force Install option. Win 7/8 leave it unchecked.
10. Click Install. [see screenshot below]

   

11. If you do not see the install summary as per screenshot and your dongle is in the directly supported list - click Uninstall, check the Force Install option, click Install.
12. Click Exit.

* create from an elevated command prompt if you have UAC enabled. The directory should not be created anywhere off your User directory (eg on your Desktop, or in your Downloads directory), it should also not be on a Network drive.

Upgrade from 1.1.0.139
1. Copy the archive to a temporary directory [eg C:\Temp].
2. Right click on the archive and select Properties.
3. Click the Unblock button if it is displayed on the General tab.
4. Unpack the archive.
5. Stop the Service [net stop "SCP DS3 Service" - from an elevated command prompt, or use Service Control Manager]
6. Close ScpMonitor if it is running. [Right-click on the icon in the Task bar and select Exit]
7. Copy the contents of the ScpServer\bin folder to your existing install folder. **
8. Start the Service [net Start "SCP DS3 Service" - from an elevated command prompt, or use Service Control Manager]

** The DS3, BTH and Bus drivers have not changed, so you do not need to re-run ScpDriver.exe.

Apply Update
1. Copy the archive to a temporary directory [eg C:\Temp].
2. Right click on the archive and select Properties.
3. Click the Unblock button if it is displayed on the General tab.
4. Unpack the archive.
5. Stop the Service [net stop "SCP DS3 Service" - from an elevated command prompt, or use Service Control Manager]
6. Close ScpMonitor if it is running. [Right-click on the icon in the Task bar and select Exit]
7. Copy the contents of the ScpServer\bin folder to your existing install folder.
8. Start the Service [net Start "SCP DS3 Service" - from an elevated command prompt, or use Service Control Manager]

Driver installation for DualShock 4 - See Post #1852.

Pairing a DS4 to your Bluetooth Dongle - plug in the DS4 to USB while the Service is running, the DS4 will be automatically paired if required.

Pairing a DS3 to your Bluetooth Dongle - plug in the DS3 to USB while the Service is running, the DS3 will be automatically paired if required.

Disconnecting a DS3 - Press and hold L1 + R1 + PS for 2 seconds.

The drivers support 4 DS3s connected by USB or via Bluetooth (one dongle can support 4 DS3 connections).

Supported OS - XP (x86), Vista (x86, amd64), Win 7 (x86, amd64), Win 8 (x86, amd64), Win 8.1 (x86, amd64)

See Post #1851 if your dongle is not on the list below.

Directly Supported Dongles
USB\VID_03F0&PID_231D
USB\VID_045E&PID_3500
USB\VID_0461&PID_4D75
USB\VID_046D&PID_C709
USB\VID_047D&PID_105E
USB\VID_0489&PID_E011
USB\VID_0489&PID_E042
USB\VID_0489&PID_E04E
USB\VID_04CA&PID_3006
USB\VID_050D&PID_016A
USB\VID_05AC&PID_821A
USB\VID_05AC&PID_821F
USB\VID_07D1&PID_F101
USB\VID_0930&PID_0215
USB\VID_0A12&PID_0001
USB\VID_0A5C&PID_200A
USB\VID_0A5C&PID_2101
USB\VID_0A5C&PID_2146
USB\VID_0A5C&PID_2148
USB\VID_0A5C&PID_2150
USB\VID_0A5C&PID_2153
USB\VID_0A5C&PID_217D
USB\VID_0A5C&PID_2198
USB\VID_0A5C&PID_21E1
USB\VID_0A5C&PID_21E8
USB\VID_0B05&PID_1715
USB\VID_0B05&PID_1783
USB\VID_0B05&PID_1785
USB\VID_0B05&PID_179C
USB\VID_0B05&PID_17B5
USB\VID_0B05&PID_B700
USB\VID_0C10&PID_0000
USB\VID_0CF3&PID_3002
USB\VID_0CF3&PID_3004
USB\VID_0CF3&PID_3005
USB\VID_0DB0&PID_3801
USB\VID_0DF6&PID_2200
USB\VID_0E5E&PID_6622
USB\VID_1131&PID_1001
USB\VID_1131&PID_1004
USB\VID_1286&PID_2044&MI_00
USB\VID_13D3&PID_3304
USB\VID_413C&PID_8126
USB\VID_8086&PID_0189
USB\VID_8087&PID_07DA
USB\VID_0930&PID_0214
USB\VID_0A5C&PID_2154
USB\VID_0489&PID_E04D
USB\VID_413C&PID_8197
USB\VID_0A5C&PID_2021
USB\VID_05AC&PID_8286
USB\VID_0A5C&PID_2100
USB\VID_0BDA&PID_8723
USB\VID_044E&PID_3010
USB\VID_0B05&PID_1788
USB\VID_0A5C&PID_2190
USB\VID_13D3&PID_3315
USB\VID_0489&PID_E027
USB\VID_05AC&PID_821D
USB\VID_0BDA&PID_0724
USB\VID_050D&PID_065A
USB\VID_0A5C&PID_21E3
USB\VID_05AC&PID_8216
USB\VID_0A5C&PID_21B4

Tools
ScpServer.exe : GUI based version of the Service.
ScpPair.exe : GUI tool to allow pairing a DS3 with an external device (eg Nexus Tablet).
Zadig.exe : GUI tool (libwdi) which allows installing WinUSB on DS4s and Bluetooth dongles which do not appear on the supported list.
___________________________________________________________________

The Filter Driver + Wrapper is no longer supported.

An updated XInput Wrapper is included as part of the Driver Package and maintains backward compatibility with :

- DS3 on SCP Filter Driver
- DS3 on libusb-win32 Filter Driver
- DS2 on Play.com USB Adapter
- SpeedLink Strike FX pad.
___________________________________________________________________


Attached Files
.7z   SCP-DS3-Driver-Package-1.1.0.136.7z (Size: 9,55 MB / Downloads: 239.061)
.7z   SCP-DS3-Driver-Package-1.1.0.136-Tools.7z (Size: 4,82 MB / Downloads: 72.482)
.7z   SCP-DS-Driver-Package-1.2.0.160.7z (Size: 10,08 MB / Downloads: 4.368.307)
.7z   SCP-DS3-Driver-Package-1.1.0.136-Update.7z (Size: 26,83 KB / Downloads: 9.707)
.7z   SCP-DS3-Driver-Package-1.1.0.138-Update.7z (Size: 81,28 KB / Downloads: 24.472)
.7z   SCP-DS3-Driver-Package-1.1.0.139-Update.7z (Size: 81,46 KB / Downloads: 17.612)
.7z   SCP-DS3-Driver-Package-1.1.0.139-Source.7z (Size: 719,52 KB / Downloads: 15.317)
.7z   SCP-DS-Driver-Package-1.2.1.165-Update.7z (Size: 394,21 KB / Downloads: 13.829)
.7z   SCP-DS-Driver-Package-1.2.1.165-Source.7z (Size: 851,16 KB / Downloads: 11.490)
.7z   SCP-DS-Driver-Package-1.2.2.175-Update.7z (Size: 648,28 KB / Downloads: 2.805.473)
.7z   SCP-DS-Driver-Package-1.2.2.175-Source.7z (Size: 855,72 KB / Downloads: 935.230)

Sponsored links

#2
So in essence, all you have done is what x360ce has been doing way before you even thought about it.
#3
I wrote a utility which solved a specific issue for me and shared it with the community. Personally I prefer to do things for myself if possible and learn a few things in the process. If anyone else can learn anything from the source code or make use of the utility so much the better.

Your problem with that is?
#4
My problem is your opening post, shows a lack of understanding of what was wrong.

A device does not have to support xinput in the least to work on windows 7

Drivers on the other hand, of which most adapters can work just dandy with the native HID driver installed, can be the limitation on many cheap adapters.

So to bypass the issue of drivers, you are passing the raw device information as Xinput functions i take it?
#5
I wrote what is essentially an Upper Filter for an HID Class device (specifically targeted at the Play.com device id - VID_0B43&PID_003). If this was installed as a Filter the Driver would have to be signed to install on Vista or 7 (barring the usual workarounds), so to bypass this requirement I wrote it as an XInput wrapper.

Yes it reads HIDClass reports and convert to an XInput (X360 specific)compatible form, that is what filters do.

By 'does not work correctly' I meant - it installs fine as a USB HID Device + HID-compliant game controller, but is no longer usable in any games.
The specific game I was playing at the time was FFXI, which would not recognize it any longer, and could not support X360 Triggers as buttons.

#6
Yeah it sounds like the adapter fakes a HID just enough to get it to be detected as a HID device, and allow hid driver installation, but the information it sends is not compatible with the native HID input driver to accept button and axis data, same as the PS3 control.

I wasn't dismissing your work btw, just refuting the idea that the control wouldn't work because it lacks xinput.

Good idea overall.
#7
As an aside - x360ce doesn't recognize the DS2 Gamepads connected via the Play.com USB adaptor ... (or I can't get it to anyway).
#8
yeah x360ce is a api wrapper, xinput > dinput
#9
Modified first post. Better ?
#10
I don't see anything wrong with this topic. Good work!




Users browsing this thread: 6 Guest(s)