goverlay icon indicating copy to clipboard operation
goverlay copied to clipboard

Pass click from trasparency to game

Open CosminBd opened this issue 5 years ago • 2 comments

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

CosminBd avatar Sep 12 '19 00:09 CosminBd

Got it to work by overwriting:

bool isAlwaysInputTransparentWindow(const std::string& name)

in \game-overlay\n_overlay\overlay\overlay.cc

CosminBd avatar Sep 12 '19 01:09 CosminBd

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.

hiitiger avatar Oct 29 '19 07:10 hiitiger

can you please provide an example for this action?

demon-i386 avatar Aug 03 '23 14:08 demon-i386