Controller System Update 2
A downloadable game
Engine System Update 2
What I did?
This week I focused on reading the input from the controller. I managed to get the input from all the buttons and the sticks and also the triggers.
I designed a user friendly interface for receiving the state of the buttons.
Some of the functions are
I have created 2 enums– One for Buttons and one for Analog types (Axis and triggers)
I successfully hooked this interface to my game project and I’m using the Gamepad Input to manipulate the objects in the game.
This shows moving based on the trigger input
This shows using face buttons
This shows using Sticks
Next Iteration:
I’ve also researched a way to use events for keypresses. Implementing this will be my next step.
I’m also planning to read a lua file which configures the buttons for some actions and be able to use those actions in the game.
Leave a comment
Log in with itch.io to leave a comment.