GamePad Button Released acting weird

I was trying to add controller support for my games menu but it kept glitching out so I made a new project to mess around with gamepads and it gives me the same issue. I setup a state variable that I change to indicate what page my menu is on. Using a keyboard it switches just fine but with a controller it stops working correctly after the first switch. Not sure if it’s a bug or I’m doing something wrong.

Here is a link to it: https://games.gdevelop-app.com/game-6c0f1a57-d1f9-4bd0-85a5-8f1b6f5cedd8/index.html

Try to add Trigger Once in the Button “ABXY” of gamepad is released, to ensure that event runs just one time.

Do like if gamepad is connected
— condition:
Addvanced AND
---- gampad “ABXY” is released
---- variable state = 0

Triggers don’t seem to fix anything.

Here is the gdevelop file: https://drive.google.com/file/d/1-BsBIvhhH1quCnRrZW0mKdHpj8sC9q9C/view?usp=sharing

I made some modifications tested with an 8bitdo controller and works fine. https://drive.google.com/file/d/1Gmp0DCI_gFZyOgOYJDeDrVQYABV17oGR/view?usp=sharing

Your file is corrupted or something, it’s only 3 KB.

Oh, sorry i didn’t know that was corrupted anyway here is the solution
https://drive.google.com/file/d/18gpKrikxTqUGNJFdzQA0Po4HQS1D7fsz/view?usp=sharing

That fixed it but I’m wondering why gamepad released requires a trigger once condition but keyboard released doesn’t?

I definitely don’t like having to make the gamepad button releases parent to the page variables for organizational reasons but I did it anyway.