goverlay
goverlay copied to clipboard
Pass click from trasparency to game
Hello! Is it possible to pass input from the overlay to the game? I have a fullscreen HTML canvas, but as long as it is active my game won't listen to any mouse / key events.
So far I've tried:
window.setIgnoreMouseEvents(true, {forward: true});
window.setFocusable(false);
also
body {
pointer-events: none
}
with no success.
Any ideas? Thanks
Got it to work by overwriting:
bool isAlwaysInputTransparentWindow(const std::string& name)
in \game-overlay\n_overlay\overlay\overlay.cc
Got it to work by overwriting:
bool isAlwaysInputTransparentWindow(const std::string& name)
in \game-overlay\n_overlay\overlay\overlay.cc
yeah, you can configure how each window handle will intercept or pass throught input by change this function.
Or maybe I should make it controlled by our client app and pass it to game.
can you please provide an example for this action?