Category: Input
Syntax:
inpGetControllerAmount:Int()
Int
Returns number of currently connected game controllers.
Takes no parameters.
Returns integer count (0-4, number of physically connected controllers).
View detailed documentation online
;No example implemented yet
A browser only shows a controller to the page once one of its buttons has been pressed while the page is open, so until then this returns 0. Don't quit when it is 0: create a controller for port 0 and wait for it to connect. See game controllers on the web.
BambooBasic © 2026 Michael Denathorn