Gamepad Input Issue Between Scenes

Hello,

I’m transitioning between 2 scenes, a Title Screen and a Level where I have the player press A on the gamepad to exit the Title Screen and continue to the first level.

The issue I’m having is as the Level scene is created, it retains the last input from the Title Screen so immediately as the scene loads the player character starts attacking (since attacking is bound to gamepad.A) – the only time it is resolved is if the player puts another input.

I have tried gamepad.destroy() on the Title Screen right before it creates the new scene – but it’s no good.

I’m looking for a way to be able to remove gamepad input in between scenes so that thing’s aren’t acting on their own on load.