igiWantsMouse

Category: IGI (in-game GUI) — Layout

Syntax:

igiWantsMouse:Int()


Parameters

None



Returns

1 while the pointer is over an IGI window (or one is being dragged).



Summary

Use it to stop a click on the GUI also counting as a click in your game.

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



Example
If inpIsMouseHit(VMOUSE_LBUTTON) And Not igiWantsMouse() Then Fire()

BambooBasic © 2026 Michael Denathorn