-
Notifications
You must be signed in to change notification settings - Fork 174
Support secondary button #445
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
Conversation
Looks good! Thanks @usr-sse2, this feature ha been requested quite frequently and will be useful to those with dedicated physical buttons. |
@usr-sse2 Thanks! @usr-sse2 @kprinssu Shouldn't the BTW, the button bitmask is parsed by |
@ben9923 It's still defined here, https://github.com/acidanthera/VoodooInput/blob/master/VoodooInput/VoodooInputMultitouch/VoodooInputTransducer.h#L43 I believe pressure values were added, perhaps that's what you are thinking of? |
Button is a field in MT2 input report: https://github.com/acidanthera/VoodooInput/blob/bc7fdb5c0c152dcd8c3ba33b5e67bde00b2c853b/VoodooInput/VoodooInputSimulator/VoodooInputSimulatorDevice.hpp#L69 |
@usr-sse2 Gotcha. I really do wonder what Apple's driver do with that value, and whether it's a bitmask (Each finger should have its own pressure value, what can it be used for then?) |
I had a brief conversation with @usr-sse2 regarding this change, and we came with a conclusion that while refactoring all the satellites is possible to support value tracking, this is a breaking change that we should not do right now in a minor release. I actually request this to be merged for the next release, as apparently the changes on the VoodooInput side made one of the issues more apparent for @lvs1974 acidanthera/VoodooInput@a1e92d7. |
@vit9696 Thanks for the input. I do wish to at least have a proper answer for this comment I've made. Not sure if it's really the desired functionality.
I believe that with those changes when force touch is enabled, buttons (actually just primary) will only work when there's a finger on the touchpad. This PR can lead to a lot of user issues, so I do think it should be closely reviewed even if it doesn't have many changes. I'm sorry it may cause delays with shipping it, but once we sort everything in this PR we can make a release right away. I also have a question - shouldn't |
Do we know if macOS does anything with the button field? |
I have been testing this PR for the last week on my ZBook G5 17 ALPS trackpad and everything works perfectly. |
Tested this on two devices:- "Primary Button Element" and "Secondary Button Element" are missing in IOReg under VoodooI2CPrecisionTouchpadHIDEventDriver -> Degitizer (IORegDump)
That makes me thing that following piece of code (from VoodooI2C/VoodooI2CHID/pull/39) is never executed, and primaryButton/secondaryButton is possibly
I don't have SYNA2B46 anymore to test and compare IOReg, so I might be overthinking here.
As a temporary workaround I'm using :
Fixes button issue for ELAN061B, but will technically break button functionality for other devices. Edit : replaced html- links with static code snippet |
Hello, I'm sorry to report that this branch doesn't work on Dell ALPS U1 touchpad, which supports the PTP protocol. After using this branch, I still got only a responsive left button while there are active inputs, and the middle and right buttons are still not working. Please tell me that if there is anything I could do to report bugs. Thanks! |
@usr-sse2 As we plan on making a release soon, do you think this is ready for merge? Sorry it took a long while. |
@ben9923 I use it since making this PR and haven't noticed any impact on the performance or energy consumption. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some optimizations & improvements I'd like to see in this code, as discussed in the review threads, but it looks fine for now.
We probably want to open an issue for those, before merging this in.
This was meant to be a part of VoodooI2C/VoodooI2CHID#39, just forgot to make a PR in this repo.