Input methods supported in Unreal:
Within Unreal, the software allows you to use keyboard and mouse input for the player input for PC games, but the software also allows you to add input for PC controllers, touch-screen (for mobile and tablet games), console controllers (Steam, Xbox and Playstation), and Virtual Headsets.
How to add a custom input:
To adjust the input to the game, I went to the Project Settings under the Edit menu toolbar. Scroll down on the left to find Input under the Engine header.
In the Bindings section at the top, there is a series of arrays containing to map input keys and input axis's. Under Action Mappings, there are a series of pre-existing action keys for Jump, Fire and ResetVR.
I wanted to add a new action to allow the player to reload. I added a new item under the Action Mapping array, which I titled 'Reload'. I added two different input methods - the keyboard key R and the left face button on the controller (usually known as X on Xbox controllers and Square on Playstation controllers).
Blueprint code (right-click and drag):
In the above Blueprint class, I have demonstrated how I previously got the player to reload, and how I ended up getting the player to reload. Previously, I relied on the player reloading with just the R key, but now they can use the special Reload input mapping, which works with R and the left face controller button.
In conclusion, I am happy that I have been able to add controller input, as I enjoy trying to make my games work on different input types, and it could give players a different experience with using the controller.