C
CleanWater
Guest
Hi there!
Sorry for my bad English and sorry for posting it again here, I posted before in the Legacy forums, but I think I posted in the wrong place.
This code below runs fine on Windows, but I'm having a lot of issues to have my gamepad working on Linux with the same code:
My GM version is 1.4.1772 and I'm using a D-Input gamepad on Ubuntu 16.06.
I managed to play test the game with the gamepad using this code before, but now, the game recognizes that there's a gamepad inserted, but pressing any button on it have no effect in-game.
I don't know what's going wrong there! Can someone help me?
Sorry for my bad English and sorry for posting it again here, I posted before in the Legacy forums, but I think I posted in the wrong place.
This code below runs fine on Windows, but I'm having a lot of issues to have my gamepad working on Linux with the same code:
Code:
///Checking Gamepads that are connected
var _gpNum = gamepad_get_device_count();
var _temp;
for (_temp = 0; _temp < _gpNum; _temp++;){
if (gamepad_is_connected(_temp)){
pad_index[_temp]= true;
gp_index = _temp;
}
else{
pad_index[_temp]= false;
}
}
if (gamepad_is_connected(gp_index)){
gp_var = true;
if (jsdefault_var == true){
jsbutton_var[1] = gp_face1;
jsbutton_var[2] = gp_face3;
jsbutton_var[3] = gp_start;
jsbutton_var[4] = gp_face4;//DLC
}
else{
jsbutton_var[1] = jsbutton_var[1];
jsbutton_var[2] = jsbutton_var[2];
jsbutton_var[3] = gp_start;
jsbutton_var[4] = jsbutton_var[3];//DLC
}
}
else{
gp_var = false;
}
I managed to play test the game with the gamepad using this code before, but now, the game recognizes that there's a gamepad inserted, but pressing any button on it have no effect in-game.
I don't know what's going wrong there! Can someone help me?
Last edited: