..:: PCSX2 Forums ::..

Full Version: XInput Wrapper for DS3 and Play.com USB Dual DS2 Controller
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510
Thanks for the updates Scarlet, so far everything is working great. Now I can finally finish ACIII

The only issue I had was while updating. I followed the steps you posted but the install failed. (Sorry I didn't think to save the log) But uninstalling, restarting my pc, then installing again fixed whatever the problem was.
Great program but I can't get it to work with Dark Souls. I'm using 2.2.1.88, have installed the filter drivers and am using your XInput1_3.dll inside the game's main folder. x360ce detects the controller but when I launch the game it crashes. Removing your dll and using the default x360ce one fixes the crashing but then the controller doesn't work. Any ideas?
@DarkPulsar: There is a compatibility mode issue with Dark Souls, so you will have to use x360ce. saekh posted that he got it working (Post #55), so you may have to play around with x360ce's settings. I don't have the game myself so can't give exact settings to use.

@CaptnJack: When doing an update install, the only thing that really matters is that the Virtual Bus Driver gets installed, the other drivers have not changed. The Installer reports failure if any driver does not get installed as before, but will not bomb out without attempting the others. So if your DS3 wasn't connected via USB it will report install failed, but it doesn't matter since the DS3 driver was installed previously. One of the things I'll tidy up in Alpha/Beta.
i know this is still currently in testing stages, but I just want to thank you personally. I have been so fed up with motioninjoy, that's the crappiest excuse for a driver/program I have ever come across. I hope you will continue working on this frequently, as already ive had better luck with your program than with motioninjoy, and I only just found your tool like 25 minutes ago! haha.

if you do get this working even better, I hope you would consider donations. I would be more than happy to donate to you, as you have no idea how long Ive been looking for a proper controller for my setup, and the ps3 controller is the best for what I want to do, but with the cruddy motioninjoy in the way of things, it was just becoming pointless. you are a god send! haha.

Anyways, I can't seem to figure out how to get my controller to work via Bluetooth. I think it may be because my Bluetooth adapter isn't compatible with your software. I can give you my device id if it would help you. Smile Otherwise if I need to purchase an adapter similar to what your testing with, I will go and find one. My device ID is:

USB\VID_0A5C&PID_21E8&REV_0112
USB\VID_0A5C&PID_21E8

By the way, I am also using Windows 8, 64-bit.

I notice it also emulates the controller as a xbox 360. is there any way to make the home button work for something? maybe as an extra button? reason I ask is because I am looking for a way to get the home button to work so I can find some sort of hotkey program to launch a program on command. Smile

Finally, (btw, sorry about all the questions, you just actually seem like someone who knows there stuff about this controller, haha) I was just curious about something. My computer is a dual boot hackintosh, and my Bluetooth adapter that I listed for you is the same exact adapter I use for the OSX side of things. I was just curious how come these drivers require to isolate the Bluetooth adapter, as for me, on the Mac side, I can pair the controller with the mac, and STILL be able to use any other Bluetooth devices. Always baffled me why the tamamy drivers, winds3, and motioninjoy does this, but the mac side works fine?

anyways, thanks for all your hard work again! Laugh
(01-09-2013, 12:05 PM)Scarlet.Crush Wrote: [ -> ]@DarkPulsar: There is a compatibility mode issue with Dark Souls, so you will have to use x360ce. saekh posted that he got it working (Post #55), so you may have to play around with x360ce's settings. I don't have the game myself so can't give exact settings to use.

Managed to get it working by manually mapping all the buttons. Thanks again Smile
Wouldn't the 0.4 ones make that a no-issue?
@KrossX : yes, the 0.4.x drivers would solve this issue. However, he did say he was using the filter driver, and the 0.4.x drivers are still in prototype phase, so only for people willing to test them out.


@unvaluablespace : the Home/Guide button isn't exposed as part of the DInput/XInput interface, so isn't usable by a user app using DInput/XInput. The button is usable in GFWL, Xbox 360 Accessories (download here) and Steam. (See #119)

The reason the Bluetooth adaptor has to be isolated is the DS3 does not comply with the Windows Bluetooth stack, so it needs a custom Bluetooth stack to inter-operate with. Mac side likely has a kernel quirk for support of DS3s.

I've added the USB\VID_0A5C&PID_21E8&REV_0112 hardware id to the driver inf file (attached). Start ScpDriver.exe, let it extract it's drivers, overlay with the ones from the archive, then hit install.
(uncheck Configure Service if it is already configured)

Let me know if these work for you, since I don't own that particular Bluetooth dongle I can't guarantee that they will work.
Bummer, I don't think my Bluetooth is compatible. :-\

it first kept giving me install errors, sorry but I cant rememember the error code, I think it was E00005 or something like that. anyway eventually it said driver succeeded, but still nothing. both scpmonitor and scpserver report the "host" as disconnected, and on scpserver the pair button is greyed out. oh well. Thanks for trying! ^_^ ill go pick up one like the ones you suggested anyway, since it has to be isolated, because I still want Bluetooth for my other devices lol. Is there any difference between the 4 you suggest, as in does one work more reliably over the other?

EDIT: okay so I got it to work. for some reason, the drivers you had me overwrite over the other ones, kept trying to revert back to the previous drivers, as in when I would try checking the "Bth" .inf file in notepad, my adapter was no longer listed. What I ended up doing was uninstalling everything, re-opened your driver installer, copied the files over with the program open, pre-installed, then copied files over again for the install. now the driver is loaded, as evidence by Bluetooth icon no longer in system tray, and the host address is showing my mac address. now the problem is that it still doesn't pair. pair button is still greyed out, and when I unplug the controller, nothing happens.

as for the home button, I found awhile back a program some guy created called "xboxext" which essentially was just a user created app, that pops up a popup asking if you want to shut off the controller. That's pretty much all it did. But based on what you said, even if the guide button doesn't work as a controller button, would you say it could be possible for someone to program the button for something else? Say similar to what I want, like make a program to interact with the button, and launch a program or something like that? Reason I ask Is I want to know since I obviously don't know how to program, maybe I can look around for someone willing to make such an app for me. haha
(01-08-2013, 05:02 PM)Scarlet.Crush Wrote: [ -> ]@mintos5 : The filter driver does 1 thing -> sends a Start command to the DS3 after receiving a URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE response. I would guess that your pad uses the Start command to switch modes from PC -> PS3 mode, but has already sent the PC mode descriptor. When you reboot/reinstall, the pad is in PS3 mode so it sends the PS3 mode descriptor. So it's possible that switching the order may solve your issue, I'll try to have a look at this at the weekend and post a test filter driver for you to try. Let me know which OS are you using, and if it is 32 or 64 bit.

In the meantime it shouldn't be necessary to reboot/reinstall, you should be able to just stop and start the driver in Device Manager. Let me know if this works for you.

Hey Scarlet.Crush,

Thanks for the response, I am using Win7 64bit and it works(stop an start the driver).
Now I am trying your Prototype 4 and it works amazing with xinput Biggrin (no reinstall/reboot needed)
But something goes wrong and the virtual bus does not create xbox controller. Where can I find failure? (in service/ScpServer log?)
The Scp VBUS is installed correct.
My install log:
Code:
SCP Bluetooth Driver Installer 0.4.0.80

Detected - Microsoft Windows 7 Ultimate (6.1.7600.0 AMD64)
Selected WIN7 configuration.

SUCCESS - Virtual Bus Created
INFO    - ENTER:  DriverPackageInstallW
INFO    - Looking for Model Section [SCProductions.NTamd64]...
INFO    - Installing INF file 'C:\ScpServer\System\ScpVBus.inf' (Plug and Play).
INFO    - Looking for Model Section [SCProductions.NTamd64]...
INFO    - Installing devices with Id "root\ScpVBus" using INF "C:\Windows\System32\DriverStore\FileRepository\scpvbus.inf_amd64_neutral_b88b71215862a778\ScpVBus.inf".
INFO    - ENTER UpdateDriverForPlugAndPlayDevices...
SUCCESS - RETURN UpdateDriverForPlugAndPlayDevices.
INFO    - Installation was successful.
@unvaluablespace : the ScpDriver.exe extracts the drivers from an internal resource every time you run it, so you have to run it, keep it open, overwrite the drivers from the archive, then press install. (as you did).
The server debug is showing that the DS3 is connecting via Bluetooth (so it is Paired), thats what all the HCI_* and L2CAP_* lines are showing, but it is disconnecting its Control and Interrupt channels after 5 seconds. (11:17:19 - 11:17:24).
Is it an official Sony DS3? If so can you provide the Model No from the back of the controller (mine are DS3 CECHZC2E, SixAxis CECHZC1E).

@mintos5 : when you say "works amazing with xinput", can you clarify what you mean? Native XInput shouldn't work at all if the Virtual X360 Controller is not created.
[I'd also recommend you update to Service Pack 1 for Win 7, and apply Windows Updates]
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510