News:

Building a 3D Ray Tracer  By stevmjon

Main Menu

Overriding the break key

Started by kevin, September 28, 2007, 06:05:48 PM

Previous topic - Next topic

kevin

 This sample shows how you can trap when the user wants to 'break' out of your program.

PlayBASIC Code: [Select]
Setfps 60
Breakkey off

repeat
cls 0
print "Press ESC or click close gadget [X] to exit"

sync
until KeyState(1)=true or getscreenclose()=true





   Read more:  PlayBASIC Documentation - INPUT COMMANDS