While using the visualizer, I noticed that the visualizer would detect keyboard input on every other entry into the playing scene. Looking at the code, it became clear that the input manager was attempting to reconnect on every scene change, but was never actually explicitly disconnecting. This is likely what is leading to the flakey behavior, which for me is 100% reproducible. Steps to reproduce:
- start the app
- select a midi file
- click the "play" button to navigate to the
playing_scene // input at this point behaves normally
- hit the "back" button to return to the
menu_scene.
- hit the "play" button again to return to the
playing_scene // inputs no longer work
While using the visualizer, I noticed that the visualizer would detect keyboard input on every other entry into the playing scene. Looking at the code, it became clear that the input manager was attempting to reconnect on every scene change, but was never actually explicitly disconnecting. This is likely what is leading to the flakey behavior, which for me is 100% reproducible. Steps to reproduce:
playing_scene// input at this point behaves normallymenu_scene.playing_scene// inputs no longer work