This week I've been focusing on controls. Well that and a grid pattern that makes my world look like its made out of cheese. With a little help from the internet I discovered the input manager in Unity. Its great, or it would be if I actually knew what I was doing with it to create custom input devices. However, some nice chap has done it for us, and I was able to simply replace the input manager file in my project and presto chango, the Xbox360 controller now works. I was able to change the input from keyboard to the joystic buttons in my movement code so now the birds flight responds to a controller. I think this should traslate directly into the OUYA since its Android based. That should make coding for the controller really easy.
No comments:
Post a Comment