nodemules / SuperPlatformerBros

1 stars 0 forks source link

XInput Support #24

Closed brenthaertlein closed 6 years ago

brenthaertlein commented 6 years ago

MUST support XInput controls for MacOS Unity MUST support XInput controls for Windows Build MAY support XInput controls for MacOS/Linux Builds

brenthaertlein commented 6 years ago

We will actually need to build an EXE and run it on a Windows machine to verify that XInput works

johngreedjr commented 6 years ago

I have gotten this to work on the mac testing with an X-Input F310 Gamepad. To do so I had to install the XBox360 controller drivers on my mac- but this is a user burden. The interesting thing about assigning the buttons is the input binding numbered designations vary from OS to OS- so we have to figure out what to do about that. See: http://wiki.unity3d.com/index.php?title=Xbox360Controller

I have gotten this to work on the Windows build with my wireless F710.

The standard unity prompt when firing up the exe/app asks for user input which you can then assign your own buttons- I imagine we can just make this in-game and bypass this screen. Would be useful/interesting to figure out how to dynamically set this based on the type of build (mac vs pc etc).

Jumping still does not work on mac or pc build (sound plays, no action)

I have committed the button config for jump on mac.

johngreedjr commented 6 years ago

Closing this issue for now as controller does work- we can come back later and tweak the feel of it.