Closed Kystan closed 1 year ago
This is not a psp related issue, I have done analog input by directly mapping joy_axis_0 and joy_axis_1 to x and y
I understand what it is about, but I do not quite understand how to write it in code. Could you send me your code so I can understand enough? I would be extremely grateful to you for this service.
I'll send you one soon
Input.get_joy_axis(0, JOY_ANALOG_0_X) Input.get_joy_axis(0, JOY_ANALOG_0_Y) Input.get_joy_axis(0, JOY_ANALOG_1_X) Input.get_joy_axis(0, JOY_ANALOG_1_Y)
this is how to get all 4 values from the left stick
Need help to use InputEventJoystickMotion and InputEventJoystickButton
Could you help me understand how to make a dead zone for the PSP stick using these functions. Values must be in the format 0.73657 and 0.57367548 (this is an example)
Here is my code: var joy_axis = Input.get_joy_axis(0, 0) if joy_axis == 0.5: if Input.is_action_pressed("R_Stick"): motion1.x += 1 else: if Input.is_action_pressed("R_Stick"): motion1.x += 0
Stick.txt