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

Windows I want to register alt commands to windows so that the game stops beeping when I hit alt

M

Miethus Whillow

Guest
I have a generic key binding system for my game that uses the shift, alt, and control keys as a means of getting more functionality out of commonly pressed keys.

The problem is that any key bind that includes the "alt" key will make a loud windows error notification (default beep) even though the key binding itself works fine.
here's a snippet of my checkInput script:

if keyboard_check(vk_alt)
{
if keyboard_check_pressed(ord("3"))
{
myCommand = levelUp3;
return true;
}
}

Like I said, this bit of code actually does work, but it beeps anyway just for good measure. Just wondering if there's any way to fix that, or if I should just live without the alt key.
 
M

Miethus Whillow

Guest
Ok, good to know. I'll just have to stay away from the alt key for now. Unfortunate, but I could think of worse things.
 
Top