My older brother is making games, and he wants to learn how to add controller inputs to custom input axises. For example, how to add joy stick presses?
If you navigate to Edit > Project Settings > Input Manager, you can see the default configurations for inputs. Clicking the “Type” dropdown for one of the axes lets you select which input will be used. This is also how you’d add analog inputs like RT and LT on an Xbox controller.
Different controllers typically have different mappings, but you should be able to find them through a Google search. For example, here’s what the mappings for an Xbox One controller look like:
After selecting the correct axis, you should be able to get its value with:
float value = Input.GetAxis("Axis Name");
Hope this helps!