The GamePad Module is one of the input modules, using which user can give commands to the device using buttons and potentiometer present in different layouts:
- Digital Mode
- Joystick Mode
- Accelerometer Mode
You can toggle between the different modes using setting option present on the top right corner of the module.
There are 10 digital buttons in the gamepad module, whose data is sent to the device when they are pressed or released. The block reports whether the button is currently pressed on the gamepad or not. If the chosen button is pressed, then it returns true, else it returns false.
You can choose the button from the drop-down menu: