M
mollyb
Guest
Hi,
I've been building a game over the last 6 months, testing on MacOS Sierra. My game is setup to receive both keyboard and gamepad input (if a gamepad is connected). My scripts have been working perfectly up until this evening.
After updating GM2 today it no longer recognizes all of the gamepad inputs (xinput). The pad, sticks and buttons are working just fine, but I can't get the shoulder triggers to work. I've double checked my script and nothing has changed (see below).
Is anyone else experiencing this issue?
*UPDATE 1/23/18*
When I rolled back to runtime version 2.1.2.172 the triggers worked again. The trigger buttons don't work with versions 2.1.3.187 or 2.1.3.189 (at least how I have them setup).
I've been building a game over the last 6 months, testing on MacOS Sierra. My game is setup to receive both keyboard and gamepad input (if a gamepad is connected). My scripts have been working perfectly up until this evening.
After updating GM2 today it no longer recognizes all of the gamepad inputs (xinput). The pad, sticks and buttons are working just fine, but I can't get the shoulder triggers to work. I've double checked my script and nothing has changed (see below).
Is anyone else experiencing this issue?
*UPDATE 1/23/18*
When I rolled back to runtime version 2.1.2.172 the triggers worked again. The trigger buttons don't work with versions 2.1.3.187 or 2.1.3.189 (at least how I have them setup).
Code:
///scr_get_input
right_key = keyboard_check(vk_right);
left_key = keyboard_check(vk_left);
up_key = keyboard_check(vk_up);
down_key = keyboard_check(vk_down);
dash_key = keyboard_check_pressed(ord("D"));
attack_key = keyboard_check_pressed(vk_space);
interact_key = keyboard_check_pressed(ord("E"));
pause_key = keyboard_check_pressed(vk_escape);
//Check for gamepad input
if (gamepad_is_connected(0)) {
right_key = (gamepad_axis_value(0, gp_axislh) >= .5);
left_key = (gamepad_axis_value(0, gp_axislh) <= -.5);
up_key = (gamepad_axis_value(0, gp_axislv) <= -.5);
down_key = (gamepad_axis_value(0, gp_axislv) >= .5);
dash_key = gamepad_button_check_pressed(0, gp_shoulderlb);
attack_key = gamepad_button_check_pressed(0, gp_shoulderrb);
interact_key = gamepad_button_check_pressed(0, gp_face1);
pause_key = gamepad_button_check_pressed(0, gp_start);
}
Last edited by a moderator: