Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Superman95 on Wed 17/12/2003 05:24:47

Title: key strokes in GUIs
Post by: Superman95 on Wed 17/12/2003 05:24:47
Is it possible to handle key strokes in GUIs?

In the on_key_press function I tried putting:

if ( IsGUIOn(5) ==1)
{
 // several statements to handle key presses for that gui.
}
if (IsGUIOn(6)==1)
{
 // key presses for this gui
}

but this didn't work.  Is this something simple I'm missing?
Title: Re:key strokes in GUIs
Post by: Superman95 on Wed 17/12/2003 05:30:04
Nevermind, I figured it out.  I just needed to modify the default script to not ignore key presses when the game is paused.

Thanks.