Alright guys, this is edging on the brink of insanity. How can USB joysticks still not be supported in unity?
Anyways, I believe my best option is to use x360ce to make my joystick ‘pretend’ to be an xbox360 controller, and implement that into Unity. Trouble is, I have no idea how to implement the .dll that x360ce spits out.
Here is the main page for x360ce:
http://www.stumblepod.com/2012/06/emulate-xbox-360-controller-on-pc.html
I fire it up and get my joystick working with the 360 controller scheme, then hit ‘save,’ pumping out a .dll and a .ini file. I have no idea what I’m supposed to do with these two files now!
Can anybody help me out? This could possibly be a fine fix for Unity 4.0 not having native DirectInput support.
Thank you so much!
Wes
The problem you are experiencing is due to X360CE not being able to hook xinput commands within unity 3d titles, we were made aware of this a couple of months back when I was trying to get Rochard working with the wrapper and having it fail to hook under any case.
If Unity 3D devs have any idea’s towards why this may be the case, I’ll be following this thread, or they can get in touch with us (Tapeq is the main developer and reverse engineering guy for all of this) either at the google project for X360CE or the X360CE Subforum at emuforums.com.
From what the creator of Durazno can see, most titles are only using Raw Input, This is pure nastiness for controller support, i’d have honestly rather SDL since that works with a much larger amount of control devices than RawInput, given that it just works via one of the systems own input api’s by default.
I don’t know about 360 controllers, but USB controllers are supported just fine in Unity. I build my current PC game with support for both keyboard and USB controls. Here’s a web-build that displays your USB joystick’s input as evidence. I didn’t write it but I use it because it’s convenient when I’m mapping my buttons.
http://dal-acm.ca/~dice/joytest/joystick%20test.html
That test doesn’t work with any device reporting a device type of 15 (Gamepad), that i have available here.
Does work with a Logitech Force 3D pro however.
It appears that particular input test does not even Acknowledge the existence of a pad installed with the XBCD driver, though unity games do atleast get some activity from it, buttons are wrong and stick directions are entirely uncalibrated though.