Game Maker 8.2 has a noice Joystick extension that's basically Xin disguised as the stock joystick functions.
Port numbers are Zero indexed! i.e. Player 1 is id 0, Player 4 is id 3.
| Player | P1 | P2 | P3 | P4 |
| Xindex | 0 | 1 | 2 | 3 |
xin_check(index,button) button valuesButton indices are also Zero indexed! i.e. Xbox A is the 0th button
| value | button |
| 0 | A |
| 1 | B |
| 2 | X |
| 3 | Y |
| 4 | LB |
| 5 | RB |
| 6 | Back / View |
| 7 | Start / Menu |
| 8 | Left stick click |
| 9 | Right stick click |
Right stick and LT/RT trigger axes have shuffled around slightly from the original stock/vanilla Game Maker 8.x joystick functions.
| value | analogue input |
| xpos | Left Stick x (left/right) |
| ypos | Left Stick y (up/down) |
| zpos | Right Stick x (left/right) |
| rpos | Right Stick y (up/down) |
| upos | LT |
| vpos | RT |
Xbox 360 controller diagram by Alphathon is licensed under CC-BY-SA 3.0, and modified by blobeee to replace labels with concise example code.