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?
 

icuurd12b42

TMC Founder
GMC Elder
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