riking / joycon

Joy-Con input driver for Linux
290 stars 31 forks source link

Unity games crash when controller is connected #52

Open samjhandley opened 5 years ago

samjhandley commented 5 years ago

There is a strange issue I've come across that I can't really nail down. It could be a Unity(game engine), Steam, Linux or JCdriver issue.

Using Steam on Arch Linux, If I have the joycons paired and in single controller mode, setup through Steam as a Switch Pro controller and launch a Unity game it will crash. Disconnect the controller and it launches no problem. Controller works great with Steam and seems to be detected as an Xbox controller in non-Unity games.

Happy to provide some outputs to stuff if anyone has some ideas of where to start.

qixils commented 4 years ago

Have reproduced on Ultimate Chicken Horse, Robot Roller-Derby Disco Dodgeball, ROCKETSROCKETSROCKETS, etc. Contacted developers of the former about this a long while ago believing it was a game issue and they replied

From the log, it seems like Unity is having problems dealing with the Joycons, which means that unfortunately there's not a lot we can likely do about it.

qixils commented 4 years ago

The logs show a crash relating to the name of the joycons somehow. Not sure how "Full Joy-Con 1" would be crashing it, unless it's missing the name somehow or something. Closest related issue is here

georgefst commented 4 years ago

Did you ever make any progress?

I've been looking in to this after finding that my virtual gamepad crashes Ultimate Chicken Horse.

AFAICT, Unity's handling of gamepads on Linux is just awful. In my experience, games just crash at startup with anything other than a PS or Xbox controller, without anything useful in the logs.

I'd be interested if anyone has any evidence to the contrary...