Rapid Key Pressing

Blitz3D Forums/Blitz3D Beginners Area/Rapid Key Pressing

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.

erm... but the easier way to check repeatedly would be


escapehit=keyhit(1)

if escapehit
   ;... do stuff
endif

;... something here to justify having two ifs

if escapehit
   ;... do more stuff
endif


That's easier than the code above isn't it?

Also the code above could be simplified to

If KeyDown(TAB) and Tab_held=false
   Switch_CameraMode()
   TAB_Held = true 
Else
   TAB_Held = false
Endif