S
Skyler Ochsenbein
Guest
Hello,
I just purchased this USB NES Controller and started testing it out. Unfortunately, this does not work with the gamepad functions, it only works with the joystick functions.
The issue I am having, is when my character is idle, he slowly shifts up and to the left every few frames. Kind of like when you do not set a deadzone for a gamepad. It doesn't look like there is a function to set a deadzone for the joystick nor can you do something like "joystick_xpos(1) > 0.5".
My Code:
The odd thing is, when the dpad is pressed, the character moves to the spd i have it at = 3. However, the shifting is just 1 pixel at a time every few steps. I tested the controller with an emulator and it works just fine. Is anyone familiar with this issue?
I just purchased this USB NES Controller and started testing it out. Unfortunately, this does not work with the gamepad functions, it only works with the joystick functions.
The issue I am having, is when my character is idle, he slowly shifts up and to the left every few frames. Kind of like when you do not set a deadzone for a gamepad. It doesn't look like there is a function to set a deadzone for the joystick nor can you do something like "joystick_xpos(1) > 0.5".
My Code:
Code:
/// Controls
// Joystick Input
dpadHorz = joystick_xpos(1);
dpadVert = joystick_ypos(1);
// Input Actions
x += spd * dpadHorz;
y += spd * dpadVert;