Hello,
I know it has been seen many times here, but i cannot manage to solve this.
I have a collection proxy, which loads a GUI.
In the bootstrap
(collection called at startup), i acquire input before posting the message for loading the collection proxy.
The collection proxy is loaded, and then in its init, i grab again the inputs. I’ve defined the on_message
function for input management, and put a print
in it. So it should print something when i hit space (defined in my input_binding file).
But nothing happens…
I’ve made a sample project which has this issue, can you have a look ? I’m sure it’s very simple, but i cannot find by myself 
Thank you for reading.
menu_loaded_with_collection_proxy.zip (22.6 KB)
You defined the on_input
function twice in your gui_script, so the second one overwrote the first, and it was empty, so you got nothing.
You also got nothing because your input did not have an action name in your input_binding file
3 Likes
Thank you!
Indeed i’ve been trapped with the function redefinition.
I’ve corrected the sample with your answer, and of course it works now.
I’ve double checked the «original» problem, but there is no function redefinition , and the input have actions, too… so it must be something trickier, but at least it narrows the problem.
Thank you 
EDIT: well, for sure i’m blind. There were indeed TWO on_input
functions in my project. I’m sure i’ve made a search which returned only ONE on_input
function. It’s driving me mad
but at least it’s ok now.
1 Like