..:: 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
@MrXLiebezeit: You can set the preferred DInput device for DInput games by doing the following -

1. Open Devices and Printers.
2. Right-click on one of the controllers and select Game controller settings.
3. Click Advanced.
4. Select the controller you want as the preferred device from the drop-down list. *
5. Click OK.

* Unfortunately they will all have the same name [Controller (XBOX 360 For Windows)].

It sounds like your preferred device has been set to your DS3 (or not set at all and defaulting to your DS3), change it to one of the other ones on the list.

DInput does not use the XInput pad id, which is what is shown on the LEDs around the Guide button.

You don't need to Uninstall to disable your DS3, you can just stop the service. Control Panel -> Administrative Tools -> Services. Scroll down the list to find SCP DS3 Service. Right-click on it and select Stop.

@ADP: added an update for your hardware id, see Post #1.
Thanks
(05-26-2013, 12:33 AM)Scarlet.Crush Wrote: [ -> ]@olverine: the driver package does not currently support button mapping directly [other than when used by PCSX2 + Lilypad]. This will probably be available in the next release of the package. [see Post #941].

I see. Good to know. It's only a minor inconvenience anyway. I wish the game allowed for changing controls via a config file or even ingame, but it doesn't seem to work. It's a very nice program, much more convenient and easier to use than that suspicious Chinese program haha
@Scarlet.Crush

It was already set to the right one. Either way the games I'm talking about are XInput games, not DInput games, the DInput games actually use the right controller.
Again as I said the LED on the controller changes, so the Xinput ID is changing, not just the DInput ID.(But for some reason when you press the button it says on the screen it is still 1, though on the controller LED is says 2)
So I have to unplug the DS3 controllers, then unplug the X360 controller. Then replug them back in in order. Then after awhile it goes back to the DS3 being the first Xinput device...
@MrXLiebezeit: XInput pad ids are assigned by the XInput subsystem, in the order that they are found / connected. To guarantee a specific order just connect them in the order that you want.

1. Disconnect your X360 pads.
2. Disconnect your DS3 from USB, restart the service or reboot.
3. Connect your pads in the order you want their XInput pad id to appear.

Are your X360 pads Wireless?
@Scarlet.Crush
No they are not wireless.
Also, when I do that it looks like it works and the Xbox pad is #1 again. Then when I start a game, it changes to #2.
It just doesn't make sense, as I plug them in in the right order, and at first it has the right ID, but then when I start a game it changes, and the LED on the controller goes from 1 to 2. No devices are plugged in or unplugged. It just changes when a game is started.
@MrXLiebezeit: that is bizarre, once an XInput pad id is assigned it should not change (unless it is unplugged). There is no documented XInput api which allows the id to be changed. As I mentioned the XInput pad id is assigned by the XInput subsystem, the drivers have no control over it.

Does it happen on all XInput games? or just a specific game?
Thank You Scarlet. It Works great.
@Scarlet.Crush
Yes, it does it with all Xinput games, and even some Dinput games. Again, it changes both the Xinput and the Dinput ID.
It is so weird too. As it looks fine until a game starts, then the LEDs on the X360 controllers start flipping out and then they settle on being 2 and 3 instead of 1 and 2.
I won't bother you anymore though, I think I'll just switch back to my DS2 controllers with the Dinput converter I used years ago for PSX and PS2 emulation.
(05-25-2013, 08:54 PM)Scarlet.Crush Wrote: [ -> ]@Muguetsu: sorry, I missed your post about the ScpServer screenshot. I'm kind of at a loss as to what is happening with your machine. The behaviour is bizarre at best, tbh it sounds like you have a virus / malware which is preventing the ScpControl.dll from being loaded. are you seeing any other strange behaviour on your PC?

Well, before I started to attempt using your software, I was using Motion in Joy. But before trying to use your software, I cleaned my PC of all MiJ files as you suggested in a post where you say to uninstall those devices of human interface relate to MiJ

I quit that goddamn program because it BSOD my PC. After I cleaned my my PC of all its files, the BSODs stopped and since then my PC is running as smoothly as possible, no problems at all.

But I gave you enough trouble lol. I'm about to buy a receiver for the Xbox controller, it's easier. But if you think that I could help you improve yous software in any way by trying solve the problems in my PC, I would be glad help
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