I assume the purpose of defos.on_click() for HTML5 is to be able to switch to fullscreen and start music on user interaction to avoid that the browser blocks the request? If that is the case then shouldn't it rather be something like defos.on_interaction() and let that callback trigger on click, touchend and keyup as well?
I assume the purpose of defos.on_click() for HTML5 is to be able to switch to fullscreen and start music on user interaction to avoid that the browser blocks the request? If that is the case then shouldn't it rather be something like defos.on_interaction() and let that callback trigger on click, touchend and keyup as well?
Example from fork: https://github.com/refold/defos/blob/master/defos/src/defos_html5.cpp#L69-L71