igiIsItemClicked

Category: IGI (in-game GUI) — Layout

Syntax:

igiIsItemClicked:Int()


Parameters

None



Returns

1 on the frame the last widget was clicked.



Summary

Checks whether the last widget was clicked - useful for widgets that don't report clicks themselves, like text or images.

Call it every frame, between drawing your game and b2dFlip. See the IGI guide.



Example
igiImage(map, 0, 0)
If igiIsItemClicked() Then OpenBigMap()

BambooBasic © 2026 Michael Denathorn