igiWantsKeyboard

Category: IGI (in-game GUI) — Layout

Syntax:

igiWantsKeyboard:Int()


Parameters

None



Returns

1 while an IGI text box has the keyboard.



Summary

Use it to stop typing in a text box also moving the player.

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



Example
If Not igiWantsKeyboard() Then
    If inpIsKeyDown(VKEY_LEFT) Then px = px - 2
EndIf

BambooBasic © 2026 Michael Denathorn