2 Keys Pressed

A

Amoses

Guest
I havent been able to find anything on this, so i figured it out myself. but if anybody else was wondering, if you want to hold alt, and press enter to fullscreen for example, this is the code

if keyboard_check(vk_alt) && keyboard_check_pressed(vk_enter)
{
if window_get_fullscreen()
{
window_set_fullscreen(false);
}
else
{
window_set_fullscreen(true);
}
}
 
L

Lonewolff

Guest
Or you could just tick this.




If you really want to do it via code, you can break it down to this and impress your friends. :p

Code:
if(keyboard_check(vk_alt) && keyboard_check_pressed(vk_enter))
        window_set_fullscreen(!window_get_fullscreen());
 
Last edited:
A

Amoses

Guest
Or you could just tick this.




If you really want to do it via code, you can break it down to this and impress your friends. :p

Code:
if(keyboard_check(vk_alt) && keyboard_check_pressed(vk_enter))
        window_set_fullscreen(!window_get_fullscreen());
oh, i never thought of it that way, thats very impressive! haha
 
Top