browser_input_capture

Set whether the GameMaker: Studio game should get input or the browser.

Syntax:

browser_input_capture(enable)


Returns: N/A


Description

With this function you can set whether the browser window should capture all input (set it to false) or whether the game should capture the input (set it to true). Note that this function is for use with the HTML5 module only.


Example:

browser_input_capture(true);

The above code sets the game to capture al browser input on the HTML5 target platform.


Back: HTML5
Next: webgl_enabled
© Copyright YoYo Games Ltd. 2018 All Rights Reserved