..:: 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
(03-03-2013, 03:47 AM)Scarlet.Crush Wrote: [ -> ]@dak224: I don't see the DS3 being disconnected from USB in the Service log. [log is cleared every time you restart the service (reboot) so as not to eat up disk space]. Can you do the following -

1. Plug in your DS3 to USB.
2. Reboot your machine.
3. Unplug your DS3 from USB.
4. Wait 30 seconds.
5. Plug in your DS3 to USB.
6. Wait 30 seconds.
7. Unplug your DS3 from USB.
8. Wait 30 seconds.
9. Zip up the ScpService.log and post it as an attachment.

Couple of questions also -
1. Do the lights keep flashing when you disconnect from USB?
2. Is your controller a genuine Sony DS3?

Your dongle is a very early REV of the CSR chip - 0134. Mine for example is 7558.

The lights on the controller go from all 4 flashing to just 1 flashing when I disconnect it, and yes its a genuine controller.

I've attached the logs (sorry - couldn't get attachments to work on my last post)
if anyone has any game compatibility issues, try checking and possibly removing any other game controllers that may be connected.

Scarlett, I don't know why, but I noticed an issue specific to Battlefield 3, which first and foremost, im pretty sure is a bf3 problem, since it only occurs there. Anyways, for the last several days I couldn't get my DS3 controller to work with BF3, though all other games/emulators worked fine. I even managed to get a game to work which previously crashed with motioninjoy (planetside 2), but BF3 refused to see my controller. I recalled pairing my Wii remote the other day, and once I went into hardware manager and removed it, BF3 started seeing my controller again.

Can anyone explain why this is? I would like to keep my wii remote paired, and still have the DS3 Controller work if possible. Again, this is only an issue in BF3, everything else works. although I do recall the other day having to re-configure my DS3 controller for project64, but I couldn't even get BF3 to re-configure at all.
Firstly, kudos to you all for your efforts and this little gadget. I had been using Motioninjoy for a while and though it never really worked 100% for me, it's so simple to use and even more so to install. I much prefer this tool to that one though for many reasons.

That being said, I've got some feed back for you. I found this post entirely by accident while trying to figure out how to configure PCSX2, while not actually feedback, I'll be sure to tell my pals about your efforts here. (Though it'd be a waste, they all went and got wired 360 controllers anyways. it's the thought that counts though right?)

Second; It would have saved me 3 hours of frustration and time if in the first post it said 'this is not a stand-alone install' on the DL. (this part was much longer but it really just boils down to including a read-me with your download that says update the 360 controller drivers from Microsoft's webpage and the scpserver.exe is the one that makes the controller work)

Here's some things I noticed whilst trying to make this work; The wrapper by itself sort of worked. Buttons were being wonky and weren't the correct buttons at all. This was before I noticed the server.exe though.
During this point I loaded up Dead Space 3 and noticed under controllers it said 'DS3 Controller for windows' in the list. Later it changed to Xinput device when working 100%. it's still that way now.
I tested my controller (CECHZC2U) in Dead Space 3 launched via Origin, PCSX2, ePSXe, Dead Rising 2 off the record retail, Dark souls PTDE launched via Steam, and the stand alone mod Black Mesa. Holding the PS button brings up the big screen thingy.
After installing the full tool, looking at my 'Devices and printers' page it showed a generic controller labeled 'Playstation 3 controller' And also 'Xbox 360 controller for windows' with a trouble shooting icon. After installing the latest 360 controller drivers it all started working and the troubleshooting icon disappeared. This is when I did my testing.
My USB cord is just some standard micro USB cord I had lying around. I do have a second controller here somewhere but I don't have any samescreen MP games.
Edit: I had accidentally unplugged it after getting it working by taking my headphones off that had coiled around the cord. Plugged it back in and it resumed working. Not sure if relevant to anything or needed at all though.

Requested feature: minimize the server to task tray option! (Forgive me if you can already do this, I have no idea how to.)
A confirmation for closing the server if it's currently running.

relevant system info: Win 7 64 bit home premium, AMD platform. Do not own a BT connector; done via USB cord (planning on getting one though.)
@dak224: the logs show that your DS3 is correctly paired, and connects to the service correctly. The controller switching to 1 led flashing indicates that LED updates are being sent to the DS3 successfully.

BTH 00000000 None - on ScpMonitor inicates that the BTH Dongle is not receiving input from the DS3. 00000000 is the packet counter, None is the Battery status - no packets read.

DS3s send their input as EDR (Enhanced Data Rate) packets, so your Dongle is not understanding these. It does report itsself as being being BTH 2.0 + EDR capable, but as I mentioned is a very early REV of the CSR chip and looks like it don't support EDR properly.


@unvaluablespace: sounds like BF3 is doing something strange when searching for controllers. Couple of things to try -
1. Before starting BF3, on Game Controller settings - click Advanced and set Prefered Controller to be your Xbox 360 Controller for Windows.
2. Before starting BF3, Turn off or disable your Wii Remote.


@Braethias: when you run ScpDriver it installs ScpService.exe as a Windows Service, this provides a background task which implements the Server functionality and runs automatically. ScpServer.exe is a foreground task, which is included mainly for debugging purposes, you shouldn't need to run it.

The most common issue for the Service not being able to start is that it has been installed somewhere that is a special folder. eg on your Desktop. Zip up your ScpDriver.log and post it as an attachment.

From Post #301.
Quote:Important - make sure your Bluetooth dongle and DS3(s) are plugged in via USB before running ScpDriver.exe. Make sure you have the latest DirectX redist installed and the latest X360 drivers available.
@Ashnal: I've got XBCD fully compatible with the Virtual X360 now, barring the BSOD if setting Full Range + Deadzone 0 - which is purely an XBCD on x64 systems issue.

Attached an update for the Bus, screenshots of config and calibrated DInput. Can you test on your system.
Scarlet I have an issue using my DS3 with the emulator PSX the sticks are rotated 90degrees counter clockwise to what they should be. They came up as Axis 1 for left stick and Axis 3 for Right stick.

This is using PSX V1.13

I am getting so very sick of this thing not reconnecting to bluetooth after idling out on long cutscenes. I plug it back in and it connects I unplug to reconnect to bluetooth and all 4 lights flash for a while before turning the controller off. Heres the log. A reboot of the system does not help one bit neither does shutting it completely down then turning it back on.

Code:
3/3/2013 2:17:41 PM.484 ++ C:\Users\Andrew\Downloads\ScpServer-0.6.0.93\ScpServer\bin\ScpService.exe 0.7.0.96
3/3/2013 2:17:41 PM.919 ++ C:\Users\Andrew\Downloads\ScpServer-0.6.0.93\ScpServer\bin\ScpControl.dll 0.7.0.96
3/3/2013 2:17:42 PM.422 ++ Microsoft Windows 7 Home Premium Service Pack 1 (6.1.7601.65536 AMD64)
3/3/2013 2:17:42 PM.554 -- USB Device : HID_Worker_Thread Starting
3/3/2013 2:17:42 PM.560 -- Bluetooth  : L2CAP_Worker_Thread Starting
3/3/2013 2:17:42 PM.563 -- Bluetooth  : HCI_Worker_Thread Starting
3/3/2013 2:17:42 PM.566 << HCI_Reset [0C03]
3/3/2013 2:17:42 PM.570 >> HCI_Command_Complete_EV [0E] [00]
3/3/2013 2:17:42 PM.572 -- Controller : UDP_Worker_Thread Starting
3/3/2013 2:17:42 PM.821 << HCI_Read_BD_ADDR [1009]
3/3/2013 2:17:42 PM.826 >> HCI_Command_Complete_EV [0E] [00]
3/3/2013 2:17:42 PM.829 << HCI_Read_Buffer_Size [1005]
3/3/2013 2:17:42 PM.840 >> HCI_Command_Complete_EV [0E] [00]
3/3/2013 2:17:42 PM.844 -- 03FE, B7, 0008, 0005
3/3/2013 2:17:42 PM.863 << HCI_Read_Local_Version_Info [1001]
3/3/2013 2:17:42 PM.887 >> HCI_Command_Complete_EV [0E] [00]
3/3/2013 2:17:42 PM.894 -- Master 20:68:9D:26:08:06, HCI_Version 7.4354, LMP_Version 6.1
3/3/2013 2:17:42 PM.895 << HCI_Write_Scan_Enable [0C1A]
3/3/2013 2:17:42 PM.898 >> HCI_Command_Complete_EV [0E] [00]
3/3/2013 2:18:01 PM.490 ++ Notify [Removal] [{E2824A09-DBAA-4407-85CA-C8E8FF5F6FFA}] [\\?\USB#VID_054C&PID_0268#5&2C82CF20&0&3#{E2824A09-DBAA-4407-85CA-C8E8FF5F6FFA}]
3/3/2013 2:18:01 PM.491 -- Device Removal [60:38:0E:75:F2:3C]
3/3/2013 2:18:01 PM.493 -- USB Device : HID_Worker_Thread Exiting
3/3/2013 2:18:13 PM.557 ++ Notify [Arrival] [{E2824A09-DBAA-4407-85CA-C8E8FF5F6FFA}] [\\?\USB#VID_054C&PID_0268#5&2C82CF20&0&3#{E2824A09-DBAA-4407-85CA-C8E8FF5F6FFA}]
3/3/2013 2:18:13 PM.700 -- Device Arrival [60:38:0E:75:F2:3C]
3/3/2013 2:18:13 PM.763 -- USB Device : HID_Worker_Thread Starting
3/3/2013 2:18:38 PM.884 ++ Notify [Removal] [{E2824A09-DBAA-4407-85CA-C8E8FF5F6FFA}] [\\?\USB#VID_054C&PID_0268#5&2C82CF20&0&3#{E2824A09-DBAA-4407-85CA-C8E8FF5F6FFA}]
3/3/2013 2:18:38 PM.886 -- Device Removal [60:38:0E:75:F2:3C]
3/3/2013 2:18:38 PM.887 -- USB Device : HID_Worker_Thread Exiting

*sighs* For now I am back to using my old Logitech Dual Action Gamepad sucks not hacing both rumble and having a cable that is to short for my needs hence the use of my extra DS3 over Bluetooth so I could get around the short cable issue.
@Topken: on DInput the stick axis are represented by half-axis values : X+, X-, Y+, Y-. Sounds like a configuration issue in that emulator. I don't have that emulator (or any PS1 emu) so can't say for certain.

I don't see any BTH connection attempt by the DS3 in the logs. Possible reasons -
1. Battery on the DS3 is very low - leave connected to USB until status switches from Charging -> Charged.
2. DS3 is not re-setting properly - press the reset button with a pin, small hole to the right of the centre screw.
3. Your Dongle is somehow going into a low power state and not waking up on a connection request - try re-setting the device in Device Manager.
4. Disable the Idle Timeout - right-click ScpMonitor Task Icon and select Configuration. Slide the slider to the far left .
Will this allow me to use my DS3 in native mode with pcsx2?

edit: connected via usb, I don't have a dongle
@Gvaz: yes, for DS3 native mode [pressure sensitive buttons] you have to use the supplied Lilypad-Scp or Pokopom plugin, and copy the XInput Wrapper [bin\Win32\XInput1_3.dll] to your PCSX2 directory.

Drivers run on USB only with no issue.
Oh, so it does. I checked my services and it wasn't running, so I restarted it up and it's all working now. I was either exhausted and closed it without thinking or it didn't start when windows launched, Don't pay any attention to me. Thanks for the reply though!


Question out of curiosity: Why can't the service launch with the exe, why does it need the CMD+ prompt to run?
Edit bonus question: If I get a dongle, nothing really changes though? No need to run server?

@topken: Why the older version? They released a new version not to long ago, 1.8.0, it has the option to assign each axis seperately. I had the same issue for a while until I realized I wasn't pushing the stick directly in one direction, but at an angle causing it to read as whichever way it leaned first.
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