key strokes in GUIs

Started by Superman95, Wed 17/12/2003 05:24:47

Previous topic - Next topic

Superman95

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?

Superman95

Nevermind, I figured it out.  I just needed to modify the default script to not ignore key presses when the game is paused.

Thanks.

SMF spam blocked by CleanTalk