• 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!

Tabbing out causes keyboard spam.

R

Roguei

Guest
Once i start into my game, if i tab out my keyboard spams the keys 'Enter' and 'P'. It also spams new path in gamemaker. I don't know if it spams others yet but those are the only ones I've seen so far. So if i tab out into a text editor it will just spam new lines with P some times in them.
This only happens when i tab out. Not in game.
What chunk of code have i mistakenly put in my game and/or forgot to have turn off?
 
I

icuurd12b42

Guest
keyboard_check_direct is not application focus dependant. you are probably using that

in any case you should catch the alt tab out with the os_is_paude() function in the step event of your game controller
 
Top