..:: 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
This works great, thanks!

Is there a way to make the controller work in Event Ghost while using this wrapper? It doesn't show up in the controller list in Event Ghost PS3 Bluetooth plugin.
(05-12-2013, 07:02 AM)Fox Wrote: [ -> ]Have anyone noticed that DS3 didn't vibrate perfectly right with SCP?

Just discovered that the only way to get perfect vibration playback with SCP is to put DS3 on USB. MiJ did the better job than SCP for vibration+bluetooth...

Is that just me, or it happens to everyone on bluetooth? Will Scarlet.Crush do something about it?
After trying to get this program working for a solid hour, I've come to the realization that I need your help SC! I've already:
- Installed/updated needed drivers
- Tried different USB cables/ports
- Restarted computer several times
- Tried pinhole reset on controller (reset worked, however still no success with PC input)

Under the "Hardware" tab for the PLAYSTATION®3 Controller it lists "Scarlet.Crush Productions" as the manufacturer, leading me to believe it has only partially worked? There are no entries under Game Controllers, despite being detected in Devices and Printers. Another interesting note is that after un-installation -> installation with the Driver Installer, nothing is listed under the "-- Install Summary --". Any guidance would be greatly appreciated!
I already manage to install the driver and can use DS3 on cable, but I can't connect/pair it using my bluetooth, here is the screenshot. Is it the bluetooth compability problem? here is my BT id:

USB\VID_0A12&PID_0001&REV_0828
USB\VID_0A12&PID_0001

Thanks
@Toast Rider: any dongle which supports Bluetooth 2.0 + EDR or above, avoid the dirt cheap ones though.

@Contrite: Can you do the following -

1. Unplug your DS3 from USB.
2. Restart the Service (or reboot your PC).
3. Plugin your DS3 to USB.
4. Wait 30 seconds.
5. Unplug your DS3 from USB.
6. Wait 30 seconds.
7. Plugin your DS3 to USB.
8. Wait 30 seconds.
9. Unplug your DS3 from USB.
10. Wait 30 seconds.
11. Zip up your ScpDriver.log and ScpService.log and post as an attachment.

@Slavix66: the drivers don't currently support mapping of triggers, see Post #941.

@kakdu: your controller is not responding to the Service Channel request, this would indicate that it is not a genuine Sony DualShock 3. See Post #518.

@NewYears1978: I've never used Event Ghost, so can't tell you what you need to configure. Does it support Xbox 360 Controllers?

@Fox: can you be more specific, "didn't vibrate perfectly" is not much to go on.

@wasdoftime: it sounds like the X360 drivers are not installed correctly. Check in Device Manager that an "Xbox 360 Controller for Windows" device is installed and working correctly. Zip up your ScpService.log and ScpDriver.log and post as an attachment.

@chopin: you are using an old version of the drivers. Update to the release version on Post #1. After installing do the following -

1. Unplug your DS3 from USB.
2. Restart the Service (or reboot your PC).
3. Plugin your DS3 to USB.
4. Wait 30 seconds.
5. Unplug your DS3 from USB.
6. Wait 30 seconds.
7. Plugin your DS3 to USB.
8. Wait 30 seconds.
9. Unplug your DS3 from USB.
10. Wait 30 seconds.
11. Zip up your ScpDriver.log and ScpService.log and post as an attachment.
(05-15-2013, 06:50 PM)Scarlet.Crush Wrote: [ -> ]@Toast Rider: any dongle which supports Bluetooth 2.0 + EDR or above, avoid the dirt cheap ones though.

@Contrite: Can you do the following -

1. Unplug your DS3 from USB.
2. Restart the Service (or reboot your PC).
3. Plugin your DS3 to USB.
4. Wait 30 seconds.
5. Unplug your DS3 from USB.
6. Wait 30 seconds.
7. Plugin your DS3 to USB.
8. Wait 30 seconds.
9. Unplug your DS3 from USB.
10. Wait 30 seconds.
11. Zip up your ScpDriver.log and ScpService.log and post as an attachment.

@Slavix66: the drivers don't currently support mapping of triggers, see Post #941.

@kakdu: your controller is not responding to the Service Channel request, this would indicate that it is not a genuine Sony DualShock 3. See Post #518.

@NewYears1978: I've never used Event Ghost, so can't tell you what you need to configure. Does it support Xbox 360 Controllers?

@Fox: can you be more specific, "didn't vibrate perfectly" is not much to go on.

@wasdoftime: it sounds like the X360 drivers are not installed correctly. Check in Device Manager that an "Xbox 360 Controller for Windows" device is installed and working correctly. Zip up your ScpService.log and ScpDriver.log and post as an attachment.

@chopin: you are using an old version of the drivers. Update to the release version on Post #1. After installing do the following -

1. Unplug your DS3 from USB.
2. Restart the Service (or reboot your PC).
3. Plugin your DS3 to USB.
4. Wait 30 seconds.
5. Unplug your DS3 from USB.
6. Wait 30 seconds.
7. Plugin your DS3 to USB.
8. Wait 30 seconds.
9. Unplug your DS3 from USB.
10. Wait 30 seconds.
11. Zip up your ScpDriver.log and ScpService.log and post as an attachment.
Thanks for your response. Following your tip, i opened my "ps3 controller". I compared with videos and photos over the internet and i found out that its not really a genuine one. The battery, a blue one, is glued to the board and is not a Sony battery. If anyone is having problem pairing the controler over the bluetooth, i suggest verifiy if its a fake one. I guess i'll have to use it plugged in then.
P. S. Is there any way to modify the source code so i can use it with my fake ps3 controller with the bluetooth adapter?
Hey, thanks for this great tool.

I was wondering if anyone could recommend a bluetooth adapter to buy (hopefully less than $10) that 100% guaranteed will work wirelessly with a PS3 controller? I'm having a very hard time finding something, especially since the motioninjoy website has been down for a while along with the compatibility list.

I would really appreciate a recommendation or two, since I don't live in the USA and some online stores aren't available here.
@kakdu: might take a bit of tinkering, could try bypassing the Service Channel code -

ScpControl\BthDevice.cs::L2CAP_Worker_Thread()

Change
Code:
if (Connection.CanStartSvc)
{
    UInt16 DCID = BthConnection.DCID++;
    L2_DCID = new Byte[2] { (Byte)((DCID >> 0) & 0xFF), (Byte)((DCID >> 8) & 0xFF) };

    L2CAP_Connection_Request(Connection.HCI_Handle.Bytes, m_Id++, L2_DCID, L2CAP.PSM.HID_Service);
    LogDebug(String.Format("<< {0} [{1:X2}] PSM [{2:X2}]", L2CAP.Code.L2CAP_Connection_Request, (Byte) L2CAP.Code.L2CAP_Connection_Request, (Byte) L2CAP.PSM.HID_Service));
}

to
Code:
if (Connection.CanStartSvc)
{
    Connection.CanStartSvc = false;
    OnInitialised(Connection);
}

I noticed that the MAC Address of your and zoomHYPERIONzoom controllers (+ a few other people who reported the same issue) all start with 00:26:5C.

@stabwound: the dongles that I own are listed in Post #85.

I also recently bought this Belkin Dongle.

soyo reported that this Plugable Dongle works well.
(05-15-2013, 09:43 PM)Scarlet.Crush Wrote: [ -> ]I noticed that the MAC Address of your and zoomHYPERIONzoom controllers (+ a few other people who reported the same issue) all start with 00:26:5C.

That probably indicates that we all have the same type of fake ps3 control. The only way you can tell its a fake one is by openning it. The exterior, include the package, is identical, to the minimal details, to a real ps3 controller.

As for the modification in the source code, i tried but it did not worked.
The computer beeps and shows in the control panel as if the device was connected (xbox 360 controller) but the lights on the ps3 controller keeping flashing, until they turn off completely.
In the future, if you can think of another modification that might resolve the issue, please PM me.
And keep up the good work. Cheers.
Hi!
I am looking for a way to programmatically emulate an XInput device, and your wrapper seems to be the best approach for doing this! Do you think there would be a possibility to somehow add some interface to programmatically register and send input to a virtual Xinput device? Something like PPJoy or vJoy?
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