Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foot pedals are each recognized as 3 joysticks. #1101

Open
1 task done
Ponhoka opened this issue Nov 26, 2024 · 0 comments
Open
1 task done

Foot pedals are each recognized as 3 joysticks. #1101

Ponhoka opened this issue Nov 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Ponhoka
Copy link

Ponhoka commented Nov 26, 2024

Is there an existing issue for this?

  • I searched the existing issues and did not find anything similar.

Current Behavior

Footpedals models are PCsensor's FS-23P_v4.7 and FS2020U1IR_v4.7, both are 3-pedal USB devices. Set with footSwitch-7.4.3 software to behave as 3-button controllers.
image
On AntiMicroX, they are each recognized as three separate Joysticks, but only one of these Joysticks contains the three buttons of the pedals. As an example, in the image below, FootSwitch (Joystick 6-8) seem to be all FS2020U1IR, but only Joystick 8 has the buttons. The numbers vary, but it is always three consecutive numbers/Joysticks for each pedal.
image
Here are the contents of each Joystick. These three Joysticks are the same for both models, the order is always the same 1->2/3->4. 1 is the first Joystick, always empty. 2 and 3 are the same Joystick, which has 256 buttons, with some of these buttons being constantly pressed(3), sometimes not. 4 is the last Joystick, it has the three buttons for each pedal and can be configured as a regular controller. Setting "Auto Load Last Opened Profile" crashes AntiMicroX, as it loads a profile on 1, the first Joystick, which is empty. This occurs by loading a profile on 1 manually as well.
image

Expected Behavior

Expected behavior is a single Joystick for each pedal, only the third Joystick(4). Autoload profile is expected to not crash, by loading into this singular Joystick that can set the buttons just like a regular controller, instead of loading into 1.

Steps To Reproduce

  1. Connect the pedals to USB ports.
  2. Configure them as controllers in the footSwitch-7.4.3 software, by choosing the correct model on the left and setting each pedal as a button with the "Game" tab on the right. Save to key.
  3. Open up AntiMicroX.
  4. Check that each pedal corresponds to three Joysticks, in order.
  5. Check the Joysticks, if the first one is empty, the second has lots of buttons, and if the last one can be configured normally.
  6. Test the last one, should function properly.
  7. Try adding a profile, or let Autoload do it, to the first Joystick of a pedal. It should crash.

Environment

Program Version 3.4.1
Compiled from packaging: GitHub Windows Release
Built Against SDL 2.30.6
Running With SDL 2.30.6
Using Qt 5.15.2
Using Event Handler: SendInput
Host OS: windows Version: 10 Architecture: x86_64

Anything else?

https://pcsensor.cn/Foot-Switch?product_category=157, this is the site of the pedal manufacturer.
https://pcsensor.cn/software-details?article_id=139 this is the page with FootSwitch software.
partoflog_footswitch_antimicrox.txt is a part of the log that might be relevant, I restarted AntimicroX with only one footpedal.
I have used AntiMicroX with multiple controllers and versions of AntiMicroX, but this problem of multiple Joysticks per device seems to be just with these pedals, excluding emulating already identified controllers as Xinput (WiiUPro to Xbox with WiinUSoft), which is actually expected behavior.
Tested the same steps on 3.5.0 and the issue persists.
Cheers!


Upvote & Fund

  • If you find this issue important, mark it with 👍. It lets us see which fixes and features are demanded by the most users.
  • We're using Polar.sh so you can upvote and help fund this issue. It may incentivize some developers to contribute to this project and fix some bugs.
  • Funded developer receives the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@Ponhoka Ponhoka added the bug Something isn't working label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant