K
Kilo
Guest
I have two wired Xbox ONE controllers, and have successfully connected them to my Mac (running Sierra).
My problem is, Gamemaker is not registering inputs from the controller.
I have character controls set in the Step event by a control object as follows:
And I get no ability to move as the character, since it appears Gamemaker is detecting the gamepad being connected, but fails to read the inputs from it.
Are Xbox ONE controllers not compatible with GMS2 for Mac (I saw in the handboox they specifically listed Xbox 360) , or is there an obvious element that I am missing here? I can provide the controller model number (Power A 1427470-01).
I appreciate any help directed my way.
My problem is, Gamemaker is not registering inputs from the controller.
I have character controls set in the Step event by a control object as follows:
Code:
if !gamepad_is_connected(0) {
// PLAYER 1
global.P1_left = keyboard_check(ord("A"))
global.P1_right = keyboard_check(ord("D"))
global.P1_duck = keyboard_check(ord("S"))
global.P1_duck_rel = keyboard_check_released(ord("S"));
global.P1_jump = keyboard_check_pressed(ord("W"));
global.P1_jump_rel = keyboard_check_released(ord("W"));
global.P1_attack1 = keyboard_check_pressed(ord("X"));
global.P1_attack1_rel = keyboard_check_released(ord("X"));
global.P1_attack2 = keyboard_check_pressed(ord("C"));
global.P1_attack3 = keyboard_check_pressed(ord("V"));
} else {
// PLAYER 1 Gamepad
global.P1_left = gamepad_axis_value(0, gp_axislh) < 0;
global.P1_right = gamepad_axis_value(0, gp_axislh) > 0;
global.P1_duck = gamepad_axis_value(0, gp_axislv) > 0;
global.P1_duck_rel = gamepad_axis_value(0, gp_axislv) <= 0;
global.P1_jump = gamepad_button_check_pressed(0,12);
global.P1_jump_rel = gamepad_button_check_released(0,12);
global.P1_attack1 = gamepad_button_check_pressed(0,8);
global.P1_attack1_rel = gamepad_button_check_released(0,8);
global.P1_attack2 = gamepad_button_check_pressed(0,9);
global.P1_attack3 = gamepad_button_check_pressed(0,15);
}
Are Xbox ONE controllers not compatible with GMS2 for Mac (I saw in the handboox they specifically listed Xbox 360) , or is there an obvious element that I am missing here? I can provide the controller model number (Power A 1427470-01).
I appreciate any help directed my way.