The gamepad is the standard input method in console games, but it can also be used in other devices such as PCs, and thanks to the gamepad package it is really easy to incorporate it into your game.
First of all, you will need to add the package as a dependency to your game. You can do it using the command line clockwork-tools, opening a command line in your project folder and typing
clockwork add gamepad
Once you have added the dependency, you just need to spawn a gamepad object in any level you want to detect gamepad input. Add it to the level like this:
and you will be ready to start detecting keyboard input!
The gamepad object you just created will trigger several events that let you know when the user is interacting with it, here is a component that will listen to all of them:
Just like that, you can add your own logic to detect gamepad input and act acordingly.
Finally, remember that if you need to remember something about how the component is used, you can quickly access the package documentation from Visual Studio Code, running the Browse Clockwork package documentation command.