shauleiz / vJoy

Virtual Joystick
http://vjoystick.sourceforge.net
MIT License
602 stars 164 forks source link

Vjoy breaks Unity engine #62

Open FlyMakerBR opened 2 years ago

FlyMakerBR commented 2 years ago

A few weeks ago I had a problem with the Unity engine. None of the games or projects made in the latest versions (2018 onwards) worked. Whenever starting games or projects, the application would crash instantly. After searching the Unity Forum for help, they pointed out to me that the engine always failed to load an HID device. Looking for my devices I saw that the ID matched with Vjoy and after uninstalling the application Unity returned to work normally.

Error inside Unity crash log: Failed to get maximum data list length. Editor.log

Vjoy Version 2.1.9.1

cyberluke commented 1 year ago

Hi, did you solve it?

I'm Unity developer and VJoy contributor (my own fork for Windows XP retrogaming). Anyway, Unity has this issue since 2013 and it happens with lot of devices, not only VJoy. Here: https://forum.unity.com/threads/ri-hid-failed-to-create-device-file.202934/

RI is RawInput from Unity. They fixed something in RawInput, but it is not universal.

Another issue here: https://community.intel.com/t5/Software-Archive/RI-Hid-Failed-to-create-device-file-Error-with-Unity-Webplayer/m-p/1007637

I guess VJoy is 32-bit driver and Unity now is only 64-bit. That might be the issue. Can you perhaps try to compile your game as 32-bit if it solves this issue, just for debugging purposes?