FreeJoy
FreeJoy copied to clipboard
D-Pad problem
Hi, i try to use multiswitch ALPS RKJXT1F4200, the problem is that after configuring everything the D-Pad works fine except "D-Pad Up". I don't know why when I release from the Up position, the "D-Pad Center" lights up after a while. I have no problem with other directions, I checked it on 2 multiswitches and 2 boards.
https://youtu.be/LSdQ5xFOoj0
My configuration :
Hi! I made some test and I can guess it is because of internal structure of this type of D-Pad. Electrically when you press any direction your Center pin (Push Com) is also triggered:
FreeJoy hanlde this by software excluding Center press when any of directions pressed. But there may be some kind of mechanical delay between releasing Up pin and Push pin, so FreeJoy can catch the moment when only Push pin is pressed and implement it as Center button press.
The way how you can handle this is to increase Button debounce delay, values of 100-150 should be enough:
This only happens with Up. I also noticed that when we quickly press and release it is ok, but if we hold and release, Push will light up after a while.
@vostrenkov Hi, I just ran into the same problem too, I have tried setting the debounce delay to 100-150 like you suggested, but the problem is still there. Only if you quickly press and release the Up direction, the problem will disappear, but it is very difficult to control. So I want to ask that is there any alternative solution to this? Thank you!