Open harshitgoel96 opened 1 year ago
Not sure if it was you that I was discussing this with on discord, or somebody else.
The good news is, I think I know where the issue is. The bad news is, this is hardware dependent. Eg, this is handled by the pinnacle touch controller's firmware, and not QMK specifically.
That said, it may be worth disabling the rotation defines, and then editing this line: https://github.com/qmk/qmk_firmware/blob/725c9f3c85cb48a0a9b6ff3d6232588bb7b41aab/drivers/sensors/cirque_pinnacle.c#L242
Set it to:
uint8_t feedconfig2 = HOSTREG__FEEDCONFIG2__GLIDE_EXTEND_DISABLE | HOSTREG__FEEDCONFIG2__INTELLIMOUSE_MODE | HOSTREG__FEEDCONFIG2__SWAP_XY_RELATIVE;
If that doesn't work, then you're SOL, basically.
Hi, Yes, we were discussing on the discord. I will take a look and getback. thanks On Monday, 22 May 2023 at 11:53:04 am GMT+5:30, Drashna Jaelre @.***> wrote:
Not sure if it was you that I was discussing this with on discord, or somebody else.
The good news is, I think I know where the issue is. The bad news is, this is hardware dependent. Eg, this is handled by the pinnacle touch controller's firmware, and not QMK specifically.
That said, it may be worth disabling the rotation defines, and then editing this line: https://github.com/qmk/qmk_firmware/blob/725c9f3c85cb48a0a9b6ff3d6232588bb7b41aab/drivers/sensors/cirque_pinnacle.c#L242
Set it to: uint8_t feedconfig2 = HOSTREGFEEDCONFIG2GLIDE_EXTEND_DISABLE | HOSTREGFEEDCONFIG2INTELLIMOUSE_MODE | HOSTREGFEEDCONFIG2SWAP_XY_RELATIVE; If that doesn't work, then you're SOL, basically.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Hi, Yes, we were discussing on the discord. I will take a look and getback. thanks
Awesome! And yeah, digging through the code, the only thing QMK Firmware does is read from the report, and dump the "scroll" data to the "wheelCount" value. Same with the button.
Checking the data sheet, and the list of registers, this was the only thing that I saw that might work for relative mode.
Hi, This brings the location of scroll and tap to left side of the trackpad instead of right. are there any other registers that i can look into?
update: I got it working by making some changes in the driver.
I believe the issue is due to how rotation is handled in QMK. Currently the rotation is handled in software using code
I basically set the register to rotate both X, and Y axis to make it work.
changed
https://github.com/qmk/qmk_firmware/blob/master/drivers/sensors/cirque_pinnacle.c#L101
to
feedconfig1 |= HOSTREG__FEEDCONFIG1__FEED_ENABLE | HOSTREG__FEEDCONFIG1__X_DATA_INVERT | HOSTREG__FEEDCONFIG1__Y_DATA_INVERT;
I am not very well versed with C, is there a way to do this config based on the existing flag for pointing device?
that's odd. In theory, the invert options shouldn't work for anything other than absolute mode, per the data sheet.
IDK, but thats how i got it working. should i close this ticket? or would this still needs to be updated at firmware level?
at my end, i will make sure to keep my local version of the driver files to make sure the trackpad works as intended for me.
Describe the Bug
Hi,
I am currently using cirque trackpad on my custom keyboard with following settings:
The expected behaviour of the trackpad for scroll is to initiate from the right of the trackpad, but on the rotated device its on the top (physical right) and same is for secondary click, it should be triggered from the top right , but due to 90 deg roation, its triggered from top left.
Keyboard Used
No response
Link to product page (if applicable)
No response
Operating System
windows
qmk doctor Output
Is AutoHotKey / Karabiner installed
Other keyboard-related software installed
No response
Additional Context
No response