daemon3000 / InputManager

Custom InputManager for Unity
Other
587 stars 88 forks source link

XBox Controller Support #43

Closed theodor349 closed 5 years ago

theodor349 commented 5 years ago

I have tried to set up an XBox controller. And it seems that most axis except for X, Y and the 3rd does not work.

And if possible it would be nice if all axis maps to the standard like here: Link

daemon3000 commented 5 years ago

What type of XBox controller? XBox 360 or XBox One? Is the controller wired or wireless? What Unity version are you using? What operating system are you using? What platform do you have set as active in the build settings? Did you try out example 05 in the plugin project? Does the controller work there?

theodor349 commented 5 years ago

XBox 360 Wireless Unity version: 2018.2.16f1 OS: Windows 10 Platform: PC, Mac & Linux Standalone

Okay, I tried your example and it works. However, I tried setting the same up in my project and it does only work for the keyboard button.

Your project: capture capture

My Project: capture capture

daemon3000 commented 5 years ago

Did you add the "ENABLE_X_INPUT" scripting symbol in the player settings? You should have gotten some warnings about it.

theodor349 commented 5 years ago

No, I had not added it. But now that I have I get the warning "No gamepad adapter has been assigned" and I can't figure out where I set that up.

daemon3000 commented 5 years ago

Add the XInputDotNetAdapter component to the Input Manager game-object.

theodor349 commented 5 years ago

Okay thanks, that works wonderfully