I've made this reference sheet cuz I couldn't find any info about this ancient legacy Game Maker extension anywhere on the internet. Tested in Game Maker 8.0 Pro on Steam Deck via Proton Experimental 2024-10-23.
Function | Parameters | Returns | example |
|
Port numbers are Zero indexed! i.e. Player 1 is id 0, Player 4 is id 3. |
Returns bool (0 = disconnected, 1 = connected)
Returns Boolean connection status of the gamepad connected to the specified port. |
switch(xin_update(0)) //player 1's controller |
|
Port numbers are Zero indexed! i.e. Player 1 is id 0, Player 4 is id 3. |
Returns int value showing button id
Returns int value representing button number |
switch(xin_update(0)) //player 1's controller |
xin_get_input
button valuesid | button |
7 | A |
8 | B |
9 | X |
10 | Y |
11 | LB |
12 | RB |
13 | Left stick click |
14 | Right stick click |
15 | Dpad up |
16 | Dpad down |
17 | Dpad left |
18 | Dpad right |
19 | Start / Menu |
20 | Back / View |
Xbox 360 controller diagram by Alphathon is licensed under CC-BY-SA 3.0
Modified by blobeee to replace labels with concise Xin 1.1 example code.
Xin 1.1 by JacksonYarr is in the public domain according to the info displayed in the Extension Package Manager