Is it possible to remove the default function of the ESC key in the webplayer ( Turning off Fullscreen )…
If there isn’t any built in functions in Unity any ideas are welcome!
Thanks.
Is it possible to remove the default function of the ESC key in the webplayer ( Turning off Fullscreen )…
If there isn’t any built in functions in Unity any ideas are welcome!
Thanks.
I’m not completely sure of this, but I think the answer to your question is no, the behavior can’t be disabled or changed (the reasoning being that it’s a security feature that shouldn’t be overridden).
I expected that. My idea for now is to use C# features to disable the ESC functionality at all. I’m exploring the topic at the moment.
Global System Hooks maybe will do the trick.
http://www.codeproject.com/KB/system/globalsystemhook.aspx
Have you tried it? I would think that wouldn’t be included in a webplayer build for security reasons. Those are the same set of API’s you use to create things such as a keylogger.
I’ve read the materials on the subject but I highly doubt that It will work in the web player.
Basically I will have to cheat the unity web player, the browser, the windows and couple of other things JUST to disable a key. That may even be considered a threat by some anti-virus software. Unacceptable for a game.