..:: 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
(08-07-2015, 03:18 AM)Mazza Wrote: [ -> ]Hey Nefarius,

So glad that someone is taking over this awesome project that Scarlet.Crush made for everyone years ago!
Been using this tool for the past 18 months or so now.
Was hoping to donate a small amount to the original author but can't seem to find any sort of PayPal link for this!

I'd be happy to donate to you, Nefarius! Should create a signature that you're carrying on with this project as well as a small PayPal link for donations!


I've got one small request, would it be possible to run more than 4 controllers at the same time (with BT support using 2 BT dongles)?

Thanks, I'll plan to update my signature and maybe set up a method for donations once I'm confident I know the code base well enough to fully adopt it. Give me time Biggrin

Sadly the 4-controller-limit comes from Microsoft's Xinput Lib itself, I have to do more research on this but what I'm aware about at this moment is that it's not possible. I'll put it on the To-Do list though.

(08-08-2015, 02:54 AM)The Edward Wrote: [ -> ]This is awesome, I'm using my DS3. I read a good deal of this thread but I think I may have missed something that was probably obvious. I got everything going with the latest version and the input is responding. How do I get it to work on games or do some button mapping? I've tried a couple games but the game is not picking up my controllers input. Sorry if I didn't give enough info. Just to say again, everything is working fine but the games aren't picking up controller input. Thanks!

What games exactly? Do they have support for Microsoft  Xbox 360 controllers?

(08-07-2015, 09:52 AM)CRACING Wrote: [ -> ]Hello Nefarius,

First of all, I would like to thank you for resurrection this project. It was much needed.

And also in regards to above quote, its good that you have made an INI for MAC settings which makes easy for end-users to config rather then dig in source files.

Now the most needed fix is for PANHAI controllers that doesn't connect via bt. I have tried to modify scp controller dll but couldn't get it working nor I'm a expert developer like you. I don't have PANHAI controller but PANHAI controller users will really appreciate you if you can get it working.  Smile

Thanks again...
Best Regards

Yes, I'd like to get those PANHAIs working, but I need "test subjects" for this Evil
Seriously, can anyone help me get my DS2 controller working? I'd like to not rely on X360CE. I've got it hooked up to a USB adapter with two controller ports on it made by Trenro.
(08-08-2015, 08:14 AM)haximusprime Wrote: [ -> ]I have obtained the latest "ScpServer_v1.3.5689.40377", In this version it seems that the logs are different (xml files) It has a lot of information i'd rather not share in a public place such as this forum. I've pmed you a link to the pastebin.

I've found the problem (at least the origin of the error); your DS4 is detected as DS3, thus the wrong commands are applied to it and the communication channel crashes.

Now I need your help for further investigation, please follow these steps:
  • Connect your DS4 via USB
  • Download and install the LibUsbDotNet setup, don't worry it's free and you can ditch it afterwards
  • Just follow the defaults and skip anything requesting for configuration
  • Navigate to the installation folder where you should find the file Test_Info.exe
    [Image: 08-08-_2015_12-59-19.png]
  • You should get a small utility where you can select your DS4 in the drop-down list like so:
    [Image: 08-08-_2015_12-59-59.png]

  • Use the menu item File / Copy to copy all of the device info to your clipboard
    [Image: 08-08-_2015_13-00-07.png]

  • Paste the content to Pastebin or a similar service and provide me the link
I'll look into it as soon as possible Tongue
(08-06-2015, 03:18 AM)JohnLoyd1 Wrote: [ -> ]The Service is there, just the dependency for it (The Spc Virtual Bus) isnt there so it wont start anymore. Although, Im not using your build, so ill see if i can uninstall the old build and install yours. Im still using 1.2.x. Hopefully installing a new build will allow the virtual bus to be installed properly because even when i uninstall and install the current build the dependency does not return.

EDIT: I installed the most recent build 1.3.x and the service still would not start. Also tried installing the service via elevated command prompt and that did not work either. I posted my install log of 1.3.x also.
Still no luck!
Trying to build project in Visual Studio Community 2013 and I get the following errors:

1>------ Build started: Project: ScpControl, Configuration: Debug Any CPU ------

1>CSC : error CS2001: Source file 'Properties\Settings.Designer.cs' could not be found
2>------ Build started: Project: ScpServer, Configuration: Debug Any CPU ------
2>CSC : error CS0006: Metadata file 'C:\Users\quadstick\Documents\GitHub\bin\ScpControl.dll' could not be found
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

and:

1>------ Build started: Project: SCPUser, Configuration: Debug Win32 ------
1>  SCPUser.cpp
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(19): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(20): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(21): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(45): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(45): error C2660: 'memset' : function does not take 2 arguments
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(46): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(46): error C2660: 'memset' : function does not take 2 arguments
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(48): error C3861: 'XInputEnable': identifier not found
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(56): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(64): error C3861: 'XInputEnable': identifier not found
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(77): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(114): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(228): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier

I had similar results trying to build the prior scarlet crush project. 

Are there build instructions somewhere that I missed that would prevent these errors?

I would like to see if I can add the QuadStick to the list of supported controllers since its USB report is based on the AfterGlow report and it looks like "ConvertAfterglowToValidBytes" would work for it.
(08-08-2015, 01:09 PM)Nefarius Wrote: [ -> ]I've found the problem (at least the origin of the error); your DS4 is detected as DS3, thus the wrong commands are applied to it and the communication channel crashes.

Now I need your help for further investigation, please follow these steps:
  • Connect your DS4 via USB
  • Download and install the LibUsbDotNet setup, don't worry it's free and you can ditch it afterwards
  • Just follow the defaults and skip anything requesting for configuration
  • Navigate to the installation folder where you should find the file Test_Info.exe
  • Paste the content to Pastebin or a similar service and provide me the link
I'll look into it as soon as possible Tongue

Thank you for your prompt reply!

Here is the diag. info you requested : http://pastebin.com/XnuaD8DA
(08-08-2015, 06:56 PM)QuadStick Wrote: [ -> ]Trying to build project in Visual Studio Community 2013 and I get the following errors:

1>------ Build started: Project: ScpControl, Configuration: Debug Any CPU ------

1>CSC : error CS2001: Source file 'Properties\Settings.Designer.cs' could not be found
2>------ Build started: Project: ScpServer, Configuration: Debug Any CPU ------
2>CSC : error CS0006: Metadata file 'C:\Users\quadstick\Documents\GitHub\bin\ScpControl.dll' could not be found
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

and:

1>------ Build started: Project: SCPUser, Configuration: Debug Win32 ------
1>  SCPUser.cpp
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(19): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(20): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(21): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(45): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(45): error C2660: 'memset' : function does not take 2 arguments
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(46): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(46): error C2660: 'memset' : function does not take 2 arguments
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(48): error C3861: 'XInputEnable': identifier not found
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(56): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(64): error C3861: 'XInputEnable': identifier not found
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(77): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(114): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier
1>c:\users\quadstick\documents\github\scpserver\scpuser\SCPPad.h(228): error C2065: 'XUSER_MAX_COUNT' : undeclared identifier

I had similar results trying to build the prior scarlet crush project.  

Are there build instructions somewhere that I missed that would prevent these errors?

I would like to see if I can add the QuadStick to the list of supported controllers since its USB report is based on the AfterGlow report and it looks like "ConvertAfterglowToValidBytes" would work for it.

Oooops, my bad! I added the missing files to the Repository, please pull the latest changes.

To build ScpUser you also need an environment variable WindowsSDK which points to the installation folder of the Windows SDK like so:

[Image: 08-08-_2015_21-54-59.png]
(08-06-2015, 02:13 AM)drakels Wrote: [ -> ]@Nefarius

bluetooh dont work.

You're running both service and server at the same time; please either shutdown the service or provide the ScpDsxService.log.xml
You know I did not think about that at all haha. I honestly was just thinking of being able to set up the button mapping using keyboard keys and the mouse for any game. As for the games, I tried it with Half-Life and Minecraft. I'm going to assume they don't support Xbox controls seeing how it didn't work.
(08-08-2015, 07:21 PM)haximusprime Wrote: [ -> ]Thank you for your prompt reply!

Here is the diag. info you requested : http://pastebin.com/XnuaD8DA

Duh, sorry, false alert, the DS4 is recognized correctly and the two error messages don't seem to have an impact on the connection. I managed to borrow a genuine DS4 from a friend earlier this day and tested it via Bluetooth in my fresh Windows 10 installation; works perfectly:

[Image: 08-08-_2015_23-34-30.png]

In the meantime I uploaded a new release regarding Windows 10 compatibility, maybe it helps in your case.
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