manages input from up to gamepad 4
get the left joystick current X position
| Parameter | Type | Description |
|---|---|---|
| id | Int | id of the gamepad (0-3) |
get the left joystick current Y position
| Parameter | Type | Description |
|---|---|---|
| id | Int | id of the gamepad (0-3) |
get the right joystick current X position
| Parameter | Type | Description |
|---|---|---|
| id | Int | id of the gamepad (0-3) |
get the right joystick current Y position
| Parameter | Type | Description |
|---|---|---|
| id | Int | id of the gamepad (0-3) |
return value of a controller button
| Parameter | Type | Description |
|---|---|---|
| id | Int | id of the gamepad (0-3) |
| btn | String | which button to check |
button types
| Option | Description |
|---|---|
| "A" | A Button |
| "B" | B Button |
| "X" | X Button |
| "Y" | Y Button |
| "LB" | Left Bumper |
| "RB" | Right Bumper |
| "LT" | Left Trigger |
| "RT" | Right Trigger |
| "Back" | Back Button |
| "Start" | Start Button |
| "LS" | Left Stick Button |
| "RS" | Right Stick Button |
| "Up" | D-pad Up Button |
| "Down" | D-pad Down Button |
| "Left" | D-pad Left Button |
| "Right" | D-pad Right Button |
| "Home" | Home Button (Xbox button) |
returns [Boolean] of which controllers are connected