K
Karlabos
Guest
So I have a script called in the async system event.
The script goes more or less like this:
myup = gp_padu;
myshoot = gp_face1;
and so forth... I pass those constants to a variable depending on the user controller configuration.
Then the object calls something like this (for moving left, say)
if ( (upsetjoy=0)&&(keyboard_check(vk_left)) )||
( (upsetjoy = 1)&&(gamepad_button_check(unary,myleft)) ){
x-=myspeed;
}
here unary is the index of the 1st controller plugged in.
So this code works for every button of my ps1 controller (faces, shoulders and start) but it doesn't work for the dpad. The ifs when the button to check is gp_padl (or any of the 4) is never triggered. Then the character cannot move when upsetjoy is set to 1...
So what gives? Am I missing something here?
The script goes more or less like this:
myup = gp_padu;
myshoot = gp_face1;
and so forth... I pass those constants to a variable depending on the user controller configuration.
Then the object calls something like this (for moving left, say)
if ( (upsetjoy=0)&&(keyboard_check(vk_left)) )||
( (upsetjoy = 1)&&(gamepad_button_check(unary,myleft)) ){
x-=myspeed;
}
here unary is the index of the 1st controller plugged in.
So this code works for every button of my ps1 controller (faces, shoulders and start) but it doesn't work for the dpad. The ifs when the button to check is gp_padl (or any of the 4) is never triggered. Then the character cannot move when upsetjoy is set to 1...
So what gives? Am I missing something here?