MV Yanfly Gamepad script call for text boxes? RMMV

Hi,
I'm using the Yanfly Gamepad Config plugin, so the players to configure the controlls to their liking.
In the tutorial for my game, the tutorials are shown with the "show text" boxes.

I need a script call that can detect which button is assigned to which action.
(Like Button 1% is assigned to action, Button 2% is assigned to Dash, etc.)

I need this as a script call for a conditional branch, that changes the text depending on which button is assigned.

Is there such a thing, or a way to do this?
Many thanks in advance C:
I think you can do that just fine if "ok" is press as this goes to the keyCode
of the OK button, same for shift.

if the Input.isTriggered("ok")than keyboad "Z, Enter" is used as for
gamepad default "A", but if they change A to B, than B is "ok" button.

I don't use gamepad plugin, but I think that is how it is used.
Either I don't quite understand what you mean, or that's not really what I meant ;-;

The problem I'm having is not that the buttons don't work or are assigned wrong.
It's more like: If the player changes A to B, I need to change a text box in-game.

Kinda like this: (just an example)
Spoiler: Example
1740920239902.png
if you want it more dynamic on the icon shown, than I don't know.
as "ok" changing to another stays on the "ok" input.

if you want to show the "button Icon" to the button, than it's a bit
more complicated 🙂

so I'm not entirely sure how to extract that info though.
Kinda like this: (just an example)
I cant find that plugin at all, so uhh... good luck?

best i can say is that you might be able to work out which button is mapped to ok with
Code:
Object.entries(Input.gamepadMapper).find(key => key[1]=="ok")[0]
I cant find that plugin at all, so uhh... good luck?
The one from the picture was just an example of what i want to achieve, not an actual plugin ^^,
The plugin I'm using came with the steam version of MV in the DLC folder
(RPG Maker MV\dlc\RPGmakerWeb_plugins\Yanfly) "GamepadConfig"
best i can say is that you might be able to work out which button is mapped to ok with
Code:
Object.entries(Input.gamepadMapper).find(key => key[1]=="ok")[0]
I'm gonna try to work with this. Can this be made into an if statement?

Say: if key[1]=="ok" - Then

I'm not a programmer myself sadly, sorry for the noob questions ;-;
The one from the picture was just an example of what i want to achieve, not an actual plugin ^^,
no, i got that your picture is an example of how you plan on using it. i meant was that i couldnt find the Yanfly Gamepad Config plugin at all in either their paid pack or on google. didnt know it was a dlc

I'm gonna try to work with this. Can this be made into an if statement?

Say: if key[1]=="ok" - Then
if it has to be in that form, then try
Code:
Input.gamepadMapper[1]=="ok"
inside of the conditional branch as its script condition

although, gamepad buttons as far as Input.gamepadMapper goes begin at 0.
0 is the default "ok" button
Aaah perfect! This is exactly what I'm looking for! Thank you so much ^o^
Maybe you can also create a picture to show the player which button is which?
I know you can set that in options menu, but sometimes the players just forget which is which.
I recall when I was playing certain game which was ported from console to pc, it only showed xbox button names so every time I needed to response to a QTE I died because I had to think which keys on the keyboard were bound to the A/B/X/Y buttons.

Spoiler
1740964375297.png

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-gamepad-script-call-for-text-boxes-rmmv.175936/