• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker ALT+Enter not recognised, makes Windows ding.

J

JapanGamer29

Guest
Hey guys, what do you think might cause this code to:
a) not show the debug message, and
b) make Windows play a ding sound?

The code is in my objGameController's Step event. Cheers.

Code:
// toggle fullscreen
var altEnter = false;

// check for ALT+Enter - problem in here
if (keyboard_check_pressed(vk_alt))
{
    if (keyboard_check_pressed(vk_enter))
    {
        altEnter = true;
        show_debug_message("altEnter: " + string(altEnter));
    }
}

// check for f4 - this works fine
var f4 = (keyboard_check_pressed(vk_f4));

if (f4 || altEnter)
{
    window_set_fullscreen(!window_get_fullscreen());
}
 
J

JON213

Guest
Last edited by a moderator:
Top