For keymapping and controller buttons there is the key_pressed(x) command that lets you place a variable x to help rebind keys to different commands. So I can assign x as 17 and it key_pressed(x) will be activated when the W key is pressed.

I'm wondering if there is anything similar for using joysticks and triggers.

I know joy_raw and joy_rot hold the joystick and trigger inputs. But if a player wanted to rebind the way joysticks work, is there any command that would allow me to swap one input for another?

Something like joy_direction(x) that would allow me to assign joy_raw.x, or joy_rot.x as the x variable.

Right now, it seems like I would have to check for each possible input in each frame, unless there is some way to pass joystick inputs to some kind of variable, like key entries and controller buttons are.