keyhit() is not 100%

Blitz3D Forums/Blitz3D Beginners Area/keyhit() is not 100%

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Also, as opposed to this method:
if keyhit(28)
   if a=0 value=true
   if a=1 value=false
endif

You could store the value in a variable and check against it like you were.
if keyhit(28)
 enterkey = true
else
 enterkey = false
endif

if a=0 and enterkey 
 value=true 
endif 

if a=1 and enterkey 
 value=false 
endif