inpIsControllerConnected

Category: Input

Syntax:

inpIsControllerConnected:Int(controller:Int)


Parameters

Returns

Int



Summary

Checks if specific controller physically connected.

Takes controller (controller handle from inpCreateController, positive integer).

Returns 1 if controller connected, 0 if disconnected or error.

View detailed documentation online



Example

;No example implemented yet



On the Web

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. Show something like "Press a button on your controller". See game controllers on the web.


BambooBasic © 2026 Michael Denathorn