whilst keyboard & mouse get most of the glory. the shining star goes to the gamepad.
we look at importing a new class - 'Gamepad' & proceed to create two MEGA functions for our 'Axis' & 'Buttons' for the controller.
we then plug in our 'xbox one' controller and start printing things out on screen.
lastly we step it up a notch & introduce two more controllers to use within our projects, without drivers. its super awesome.
xbox controller driver needed for mac users
https://github.com/360Controller/360Controller
USB NES controller
http://www.gearbest.com/mice-keyboards/pp_261726.html
USB SNES controller
http://www.gearbest.com/mice-keyboards/pp_261728.html
source code:
https://github.com/lewislepton/kha-tutorial-series
SUPPORT ON PATREON FROM AS LITTLE AS $1:
https://patreon.com/lewislepton
intro & outro music is from this EP:
https://lewislepton.bandcamp.com/album/coat-noise-ep
like, share & subscribe to stay up to date.
https://lewislepton.com
https://patreon.com/lewislepton
https://twitter.com/lewislepton
https://facebook.com/lewislepton
https://lewislepton.bandcamp.com
https://soundcloud.com/lewislepton
https://github.com/lewislepton