-
Notifications
You must be signed in to change notification settings - Fork 114
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
Mouse mode doesn't move the cursor #333
Comments
Only the mode switching has been implemented in master yet. The mouse movements itself still live in a branch: I'm not yet happy with sensitivity and still need to figure out if we can bring up an on-screen keyboard somehow. Also, I do not like that I'm starting a timer to sample the virtual mouse movement, I'd rather dynamically update the mouse axes on events from the controller but that's difficult for maintaining constant speeds, and if you hold the sticks in some place, it would generate no more events. Maybe you didn't checkout the correct branch? Also, maybe there's a conflict with udev rules and the system doesn't properly pick it up as a mouse pointer then. But with the correct branch, it should show "mouse added" in dmesg before "mouse mode enabled": |
Hi, Personally, I will then stick with the branch from the pull request since it is usable enough already to switch between games without getting up from the couch :) Could you rephrase the text in the README.md? Currently it advertises the mouse mode as if it was fully functional already:
Cheers |
Good point, that shouldn't have been there yet. Probably happened during cherry-picking. |
Ok, that solves my issue then I guess. Thanks for the clarification! |
Don't close it on your behalf, otherwise I'm missing that point on my agenda. |
kk |
Should split it into planned features and implemented features, since its still not in mainline (didnt work for me), should also have guides for some of this stuff, no idea how to enable the "high precision mode" or the auto trigger rumble. |
Mouse mode is not yet fully implemented, remove it. Also clarify what "high precision mode" means. Affects: atar-axis#333 Signed-off-by: Kai Krakow <[email protected]>
Closes: atar-axis#333 Signed-off-by: Kai Krakow <[email protected]>
"high precision mode" disables dead zones in the Linux input layer so Proton games do not apply a second dead zone but the only dead zone (this is actually something that happens in SDL2 and wine). I've fixed the docs, also temporarily removing the line about mouse mode. Mouse mode is queued in my feature queue and scheduled for merge when or shortly after tagging v0.10. Automatic trigger rumble rumbles the triggers based on pressure when one of the main motors rumble. This is used because the kernel does not yet support a third and fourth rumble motor (a kernel patch for that is queued). |
Does the auto rumble interfere with games that actually natively use the rumble triggers? There's not a lot of them but they do exist. I also assume your proton fix is automatic? I have zero idea how id toggle it if's not. |
No, it cannot interfere... If SDL supports it for you, it does so through the hidraw interface. The kernel does not yet provide the proper interfaces. And if it does, I have to adjust xpadneo to actually make use of it. I'm probably going to look into some heuristics to detect whether a game sends trigger rumble or doesn't and automatically adjust how the driver works, so older games can still benefit from our "simulation". Also, I don't think Proton currently supports it although SDL may have the interfaces already. Take note that if it is supported, then only in hidraw mode - which xpadneo udev rules disable due to instabilities of the controller firmware resulting from SDL rumble programming and button mapping issues. Older proton versions should adjust automatically if you enabled high precision mode via module parameters. Newer Proton versions may have a fix to ignore driver dead zones on their own given that SDL2 was patched. The issue was reported and handled here: ValveSoftware/wine#94, my patch for SDL should be upstream. The SDL patch request was originally tracked in the SDL bugzilla and since migrated to Github, so I'm not really sure about the status: libsdl-org/SDL#3781 Enabling high precision mode works around that in any case, no matter if a patch was applied. It's meant for games that apply their own dead zone handler after the Linux input handler (many games use radial dead zones while the Linux input layer and SDL use axial dead zones which is very strange and feels laggy/non-precise when combined). Use the module parameter BTW: Running |
Closes: atar-axis#333 Signed-off-by: Kai Krakow <[email protected]>
Closes: atar-axis#333 Signed-off-by: Kai Krakow <[email protected]>
Closes: atar-axis#333 Signed-off-by: Kai Krakow <[email protected]>
Closes: atar-axis#333 Signed-off-by: Kai Krakow <[email protected]>
Closes: atar-axis#333 Signed-off-by: Kai Krakow <[email protected]>
Co-authored-by: Jacob Essex <[email protected]> Co-authored-by: Florian Dollinger <[email protected]> Closes: atar-axis#160 Closes: atar-axis#105 Closes: atar-axis#99 Fixes: atar-axis#333 See-also: atar-axis#419 See-also: atar-axis#435 Signed-off-by: Kai Krakow <[email protected]>
Co-authored-by: Jacob Essex <[email protected]> Co-authored-by: Florian Dollinger <[email protected]> Closes: atar-axis#160 Closes: atar-axis#105 Closes: atar-axis#99 Fixes: atar-axis#333 See-also: atar-axis#419 See-also: atar-axis#435 Signed-off-by: Kai Krakow <[email protected]>
Co-authored-by: Jacob Essex <[email protected]> Co-authored-by: Florian Dollinger <[email protected]> Closes: atar-axis#160 Closes: atar-axis#105 Closes: atar-axis#99 Fixes: atar-axis#333 See-also: atar-axis#419 See-also: atar-axis#435 Signed-off-by: Kai Krakow <[email protected]>
Version of xpadneo
git master at commit cf392a7
Controller Model
Connection mode
Installed Software
Severity / Impact
Describe the Bug
When activating mouse mode by simultaneously pressing the Xbox and Select button, I cannot move my cursor or click buttons. The dmesg log indicates that mouse mode has been activated though:
Mouse mode works though when I re-install from @kakra's branch in pull request #282
As a gamepad, the controller works fine with xpadneo. Thanks a lot btw for this cool piece of software!
Steps to Reproduce
Expected Behavior
While in mouse mode, I expect the left stick to move the mouse cursor and A or LT to emulate a mouse click.
Screenshots / GIFs / Videos
System Information
Controller and Bluetooth Information
xpadneo-btmon.txt
xpadneo-lsusb.txt
xpadneo-dmesg.txt
Additional Context
The text was updated successfully, but these errors were encountered: