360 gamepad + Script help

I'm trying to work with a script I believe is called RGSS3.

http://www.atelier-rgss.com/RGSS/RGSS_VX_ACE.html

The problem is the full demo system uses a chain command with prompts for hitting certain buttons.  For example it'll flash on the screen hit 'X'.  Well by default 'X' is the 'B' button when using a 360 pad.  Can anyone tell me what 360 buttons correspond to the default controls?  I'd like to modify the script so when it says hit  'X' is means hit 'X' instead of  'B' and etc.

I think this is the relevant part of the script below.

Code:
 #-------------------------------------------------------------------------- # ● Update Command #--------------------------------------------------------------------------        def update_command     return if @auto     if Input.trigger?(Input::X)        check_command(0)     elsif Input.trigger?(Input::Z)          check_command(1)     elsif Input.trigger?(Input::Y)          check_command(2)     elsif Input.trigger?(Input::A)            check_command(3)     elsif Input.trigger?(Input::C)                   check_command(4)     elsif Input.trigger?(Input::                check_command(5)     elsif Input.trigger?(Input::L)                check_command(6)     elsif Input.trigger?(Input::R)                check_command(7)             elsif Input.trigger?(Input::RIGHT)              check_command(8)     elsif Input.trigger?(Input::LEFT)        check_command(9)     elsif Input.trigger?(Input::DOWN)        check_command(10)     elsif Input.trigger?(Input::UP)          check_command(11)     end    end      #-------------------------------------------------------------------------- # ● command_list_check #--------------------------------------------------------------------------        def command_list_check(command)     case command         when "A"            @com = 0           when "D"            @com = 1           when "S"            @com = 2         when "Shift"            @com = 3         when "Z"            @com = 4         when "X"            @com = 5         when "Q"            @com = 6         when "W"            @com = 7                     when "Right"            @com = 8         when "Left"            @com = 9         when "Down"            @com = 10         when "Up"              @com = 11         else               @com = 12                end end    
Well, you can always check them one by one... There's not much button in it, so I bet you can do it faster than waiting for a reply here... Also, RGSS3 is the name of the scripting used by Ace...

BTW, I don't think it's a good idea unless you force your user to use a 360 pad... Plus they can modify the controls too, so it's better to leave it as is... because if they modify the control, then your set-up will be more confusing since it uses the actual button names instead of the game designation...
Well, pretty much as adiktuzmiko said. But you can also press F1 and see the button binding by yourself (it's not too self-explanatory as it just says button 1,2,3,4,5,6,7,8,9,10... but...).

Actually, I will do the chore, here it is.

  • Keyboard key (RM button name): 360 pad button (F1 button number)
  • Shift ( A ): A (1)
  • Esc/Num0/X ( B ): B (2)
  • Space/Z/Enter ( C ): X (3)
  • A ( X ): Y (4)
  • S ( Y ): LB (5)
  • D ( Z ): RB (6)
  • Q ( L ): Back (7)
  • W ( R ): Start (8)
  • -- ( - ): L-Thumb (9)
  • -- ( - ): R-Thumb (10)
As you can see, there is no access to the triggers. Also as you may notice after trying it for some seconds (?), the d-pad doesn't works either. And R-Analog does nothing.

Hope it helps you, salut,

Orochii Zouveleki
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/360-gamepad-script-help.19513/