..:: 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
Updating Bluetooth drivers for dongles not on the supported list.

1. Download the Tools from Post #1.
2. Unpack the archive.
3. Run Zadig.exe from the ScpServer\bin\Zadig folder.
4. If you have UAC enabled click Yes on the UAC dialog.
5. Click Device -> Load Preset.
6. Select Bluetooth.cfg, click Open.
7. Click Options -> List All Devices.
8. Select your Bluetooth Dongle from the drop down list.
9. Click Replace Driver.
10. Click Yes if the Warning - System Driver dialog pops up.
11. Click Close on the Driver Installation dialog.
12. Verify that your dongle displays in ScpMonitor.
13. Verify that your dongle displays in Device Manager.

See attached screenshots.
Updating DualShock 4 USB drivers.

1. Download the Tools from Post #1.
2. Unpack the archive.
3. Run Zadig.exe from the ScpServer\bin\Zadig folder.
4. If you have UAC enabled click Yes on the UAC dialog.
5. Click Device -> Load Preset.
6. Select DualShock4.cfg, click Open.
7. Click Options -> List All Devices.
8. Select your DS4 from the drop down list.
9. Click Replace Driver.
10. Click Yes if the Warning - System Driver dialog pops up.
11. Click Close on the Driver Installation dialog.
12. Verify that your DS4 displays in ScpMonitor.
13. Verify that your DS4 displays in Device Manager.

See attached screenshots.
(12-11-2013, 08:03 PM)qvisti Wrote: [ -> ]I just registered to thanks you for this .dll Biggrin now all my controllers works great without lags!!! I have two of this controllers. Also want to thanks Scarlet.Crush for this great software!!!CoolCoolCool
Good to know, that I helped someone Smile Have fun!

(12-12-2013, 08:44 AM)Gonzalos Wrote: [ -> ]I have no ps3, I use my fake sixaxis with Sixaxis Controller on Android. It's work fine.
I started my research on this app - got to test it again and find out what's happening there. If it is working without lags I'll try to make a xmas gift for all of us having problems with bluetooth in non-genuine pads Wink
Pairing a DualShock 4 to your Bluetooth Dongle.

Note - Secure Simple Pairing is used and requires a Bluetooth 2.1 + EDR (or later) dongle.

1. Download the Tools from Post #1.
2. Unpack the archive.
3. Disconnect your DS4 from USB.
4. Stop the Service [net stop "SCP DS3 Service" - from an elevated command prompt, or use Service Control Manager].
5. Run Ds4Pair.exe from the ScpServer\bin folder.
6. Press and hold the Share button followed by the PS button on your DS4 until the light double flashes white. [Indicating it is in Pairing mode]
7. Click Start on the DS4 Pair Tool form.
8. On a successful pairing the light bar on the DS4 will change to solid white.
9. Hold the PS button for 10 seconds to turn it off.
10. Close the DS4 Pair Tool.
11. Start the Service [net Start "SCP DS3 Service" - from an elevated command prompt, or use Service Control Manager].
12. Press the PS button on your DS4 to connect to the service.
13. Verify that your DS4 is displayed in ScpMonitor.

See attached screenshots.
Just a friendly warning for upgrading to this from the old one:

Theres no official process for upgrading the driver to the new version. I had trouble upgrading to the new one because I didn't uninstall the old one first from the old driver's ScpDriver.exe, so before upgrading, run ScpDriver.exe from the currently installed driver, and click uninstall. (aka: Don't click uninstall from the new driver package's ScpDriver.exe!)

Thanks for the excellent driver, and the ability to "map triggers" as buttons!! Smile (fyi: left-click ScpMonitor's taskbar icon -> configuration) p.s. I'm running WinXP
best regards,
- dink
@dink: hadn't got to the upgrade process yet, still updating posts.



New version posted - 1.1.0.136, see Post #1.



@HyeVltg3: sounds like your DInput calibration needs to be reset.

Game Controller Settings -> Properties -> Settings Tab -> Reset to defaults.
I noticed something strange when mapping the triggers as buttons - sometimes other buttons (the hat/x/o/square/triangle) will get lagged for a split second or so, when the triggers are mapped as buttons and the triggers are pulled while pressing the other buttons. I noticed this both in the Control Panel -> Game Controllers -> Controller Properties, and in the VICE X64 (C64 emulator) while playing a game.

best regards,
- dink
@dink: what controller are you using, and over USB or Bluetooth?

it's a very small piece of code that does the mapping and does not introduce any overhead

Code:
BusDevice.Parse(Byte[] Input, Byte[] Output) :

                // ++ Trigger Swap
                if (Global.SwapTriggers)
                {
                    if ((Buttons & (0x1 << 8)) > 0) Output[10] |= (Byte)(1 << 6); // L2 -> Left  Thumb
                    if ((Buttons & (0x1 << 9)) > 0) Output[10] |= (Byte)(1 << 7); // R2 -> Right Thumb

                    Output[12] = 0; // Clear Left  Trigger
                    Output[13] = 0; // Clear Right Trigger
                }
                else
                {
                    if ((Buttons & (0x1 << 1)) > 0) Output[10] |= (Byte)(1 << 6); // Left  Thumb
                    if ((Buttons & (0x1 << 2)) > 0) Output[10] |= (Byte)(1 << 7); // Right Thumb

                    Output[12] = Input[26]; // Left Trigger
                    Output[13] = Input[27]; // Right Trigger
                }
                // --
I'm facing a problem with version 1.1.0.136 with my bluetooth dongle, host adress show error (was ok with 1.0.0.103)
@znation: can you reboot your PC, then zip up and post your ScpService.log if the issue persists.
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