Can render script have on_input function?

title

I dont think so, see Defold application lifecycle manual

But you have on_message() on render_script,: so you can repost to @render while in on_input() in a game object script to forward input to render script. Have an message_id == hash(“on_input”) and send message ={action=action, action_id=action_id}

I am wondering what you are trying to do?

I want to do fullscreen by pressing f11. I guess I had to use defos extension

Yes that’s the simpler. No need to mess with render phase for that

2 Likes