If you are making a menu with pictures, I presume you are on the scene map. If you are on the scene map, you can use common events.
So you assign a common event to R2(RT) and do your thing there.
As for using it as a script call, like condition check, you need to know the button codes of the gamepad:
- 0: A
- 1: B
- 2: X
- 3: Y
- 4: LB
- 5: RB
- 6: LT
- 7: RT
- 8: select
- 9: start
- 10: L3
- 11: R3
- 12: up
- 13: down
- 14: left
- 15: right
After that, you can use a script call to check if a button is pressed:
Input._gamepadStates[buttonCode] > If this return true, means that this button was pressed. So for R3, will be:
Input._gamepadStates[11]