inpCreateController

Category: Input

Syntax:

inpCreateController:Int(port:Int)


Parameters

Returns

Int



Summary

Creates controller input handle for specified port/player.

Takes port (controller port number 0-3, maps to player 1-4).

Returns controller handle (positive integer on success, -1 on error).

View detailed documentation online



Example

;No example implemented yet



On the Web

Ports 0-3 are the browser's gamepad slots. 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 the new controller reads as not connected. See game controllers on the web.


BambooBasic © 2026 Michael Denathorn