C
Captain.Sass
Guest
I'm trying to create a simple top-down shooter with GMS:2 using a controller. The only thing is, one joystick axis on the controller controls every other axis on the controller. This means if you look at the values of all four joystick axes on a controller, they would all be the same and are only controlled by one axis, so when you move the left joystick up and down they all change and wouldn't change if you tried to move despite moving the proper joysticks. I have tested this with multiple controllers and the problem is still there. My controllers work perfectly outside of GMS:2. Here's the code in my step event if it helps. I was wondering if anybody knows any way to look into the problem.
Code:
haxis = (gamepad_axis_value(0,gpaxislh));
vaxis = (gamepad_axis_value(0,gpaxislv));
haxisr = (gamepad_axis_value(0,gpaxisrh));
vaxisr = (gamepad_axis_value(0,gpaxisrv));
facing = point_direction(x,y,x+haxis,y+vaxis);
image_angle = facing;