SITL : Flight Mode (hover/forward) control through Joystick

hello,

I’m in a SITL context using a VTOL Tilt Rotor custom configuration.
If I read correctly the doc, it says that the flight mode transition is controlled with a RC transmitter switch.
I don’t have a RC transmitter under hand. Is there a way to use a Joystick button instead?
Will the COM_RC_IN_MODE=2 help to do that ?

thanks.
regards
Frédéric