I have found a conflict between a key(keyboard) released event and button released event. Gamepad extension itself is working fine but it returns true in a key release event when the gamepad button have not been released. Example:
I’ll investigate if there is a bug with gamepad extension, in the meantime check your logic event, you can use the debugger it’s free.
And you can create log by adding a text object and write inside what is supposed to happend.
Maybe it’s not explained well the problem. The project should create only one instance pressing spacebar/gamepad button"A". With the fix the project is creating a instance every frame pressing spacebar/gamepad button"A".
Thank you for try help but you don’t have understood the point of the thread. It works fine for spacebar, It doesn’t work for gamepad. Anyway I can’t use in this case trigger once because I need have free control of the keypressed variable for another involved event in my real project.
I am trying it with a real xinput device, xbox 360 controller.
Well, was this a joke? this is not funny to play with people’s time and work. I downloaded the fix and it doesn’t works. If Gdevelop is broken at least don’t joke about it.
I actually encountered this tonight using an xbox series x controller.
Using gamepad button released condition seems to default to true and repeats actions every frame after the button has been released. Yes, this can be made to work only once with a trigger once event, but in contrast, key released condition only works once and does not need a trigger once event.
I’ve uploaded a sample project showing this in action.