Hey,
let's try if we can at least find what causes this.
Can you check what value
has?
An easy way to do so would be to add this function to your game, then press "j" and let us know what number appears:
function numjoysticktest_startup() {
while(!key_j) wait(1);
error(str_for_num(NULL,num_joysticks));
}
This should give us a hint whether or not that joystick is getting recognized at all.
Another possible thing to check: Perhaps it's not registered as the first joystick, or it's not the first button. To check for that, consider adding this function:
function numjoysticktest_startup() {
while(!key_k) wait(1);
while(key_k) wait(1);
error("Ready!");
while(key_any) wait(1);
while(key_any==0) wait(1);
error(str_for_num(NULL,key_lastpressed));
}
If you add that function to your code, then hit [K], a prompt reading "Ready!" will appear. Click "OK", then (before hitting any other key) hit your joystick button.
It will (if it recognizes the joystick, at least) report the scancode of whichever key was pressed. You can then check the manual to see what key that is, or report to us the number and we can check that together.