Setting controls for gamepads (custom scripts question)

Greetings, fellow bipeds!

I have been experimenting with some of the wonderful scripts created for real-time gameplay in VX Ace (such as Khas' great Sapphire Action System) and I've run into an interesting problem that I have not been able to solve due to my limited knowledge of Ruby.

But the problem isn't with Sapphire; it's actually with Falcao Liquid Pearl. In Pearl, you attack using whatever key is set up in the script, while Sapphire by default uses the A key for attacks. I like Sapphire's setup because I can use a gamepad and the A key can be set to a specific button in gamepad setup under the F1 menu. The same cannot be said for Pearl; even though I have set the script up to use A as the attack key, it will not acknowledge a press of the corresponding button from a gamepad. (Other buttons, such as the interact button, dash and cancel still work just fine.)

Does anyone know a line of code or some command I can drop in there somewhere so that custom keys set up in Pearl will work for a gamepad, or does this require some special script? Is this a very complicated fix? Thanks in advance!

ETA: Pearl is located here so its scripts can be accessed.
'Scripts' is where people who have written completed scripts that they want to share with others can post them.

Moved to: RGSSx Script Support
It might help if you included a link to the Pearl script so that if anyone needs to check something before giving advice, they won't have to go hunting.
I'm sorry; I thought I had the correct forum. My apologies.

Here is a link to Pearl: http://falcaorgss.wordpress.com/category/pearl-abs-liquid/

Original thread: https://forums.rpgmakerweb.com/threads/setting-controls-for-gamepads-custom-scripts-question.110326/