Keydown() too quick

Blitz3D Forums/Blitz3D Programming/Keydown() too quick

Boiled Sweets(Posted 2003) [#1]
ARGGH! Another problem...

Within my flip look I have

[code]
If KeyDown(57)
If edit_menu_enabled= False
edit_menu_enabled = True
Else
edit_menu_enabled = False
EndIf
endIf
[\code]

However the loop is SOO quick that it appears to read the keyboard too many times...

How do I ensure that its only read once?


Michael Reitzenstein(Posted 2003) [#2]
KeyHit( )


Boiled Sweets(Posted 2003) [#3]
Oops! Boy I feel silly now!

Thanks.