@shotokan the script maps the gamepad inputs to keyboard codes. The inputs used are ['left', 'right', 'up', 'down', 'a', 'b', 'x', 'y', 'pageup', 'pagedown'] and are mapped to the codes given as parameters.
So left= kcub1, right= kcuf1, etc.
The parameter codes are given as terminfo values, listed in https://pubs.opengroup.org/onlinepubs/7908799/xcurses/terminfo.html.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.