sysQuitRequested

Category: System

Syntax:

sysQuitRequested:Int()



Returns

Int



Summary

Returns TRUE (1) once the user has asked the program to close - the window's close button, or the system closing it.

Takes no parameters.

Returns TRUE (1) if a quit has been requested, FALSE (0) otherwise.

View detailed documentation online



Example
Import "BBRuntimeVulkan.decls"

b2dGraphics(640, 480, 1)
While sysQuitRequested() = 0
	sysUpdateEvents()
	b2dCls()
	; ... draw here ...
	b2dFlip()
Wend
; ... save here ...
b2dEnd()

BambooBasic © 2026 Michael Denathorn