posting this because i searched for it and very little came up. for some reason it’s not in joystick settings, it’s hidden off-screen at the bottom of the available input methods. it’s on screen for inputs with few options, like ABXY, but not joysticks, trackpads or gyro

youtube tutorial (not mine)

i realise people generally prefer action layers, but i find mode shifts much less buggy