Open Raraph84 opened 1 year ago
I'm afraid I don't have time currently to help. But, do you have multiple pointers connected? I've found that only 1 pointer will work, and don't know how to fix it without needing to convert all input pointer events into a single output pointer event (which is obviously more complex than just proxying the events untouched): https://unix.stackexchange.com/questions/757291/hid-events-are-received-but-mouse-input-still-not-working
No, wait, if you got some movement with the mouse filter, then that's not the case. You must have just got the SDP record wrong. When I get back to this, I think I may have enough information now to make this automated. So, will try and resolve this properly in a few weeks probably.
Indeed, the filter is not suitable for my trackpad. I noticed that only 3 bytes change when I move the mouse. I've figured out how to create these bytes from scratch, and I can make the mouse cursor move by modifying the variables:
button = 0
x = 0
y = 0
scroll = 0
return bytes([
0xA1,
0x03,
button,
0x00,
x if x >= 0 else (256 + x),
0 if x >= 0 else 255,
y if y >= 0 else (256 + y),
0 if y >= 0 else 255,
scroll if scroll >= 0 else (256 + scroll)
])
I'm not sure if this is the right way to do it, but now I'm trying to decode the bytes from my trackpad so that I can create a filter that works for my keyboard/trackpad.
the filter is not suitable for my trackpad
I don't think the filter is suitable for anything other than ruundii's mouse...
As explained in the threads elsewhere, my approach is to remove filtering, and just update the SDP record to match the mouse's record. Then we can just pass events through without modification (or only needing to add/edit a byte for the report ID).
Yes, as mentioned earlier, I tried by modifying the SDP, but it didn't solve the problem. I have no idea why, perhaps because the same device functions as both a keyboard and a trackpad at the same time.
It would just have multiple report IDs, which would all need to be included and remapped.
Hi!
I'm trying to get this project working with a Bluetooth keyboard with a trackpad. My keyboard is the Diafield Keyboard. Everything is working except for the trackpad. I've tested all the filters, and none of them are working. However, I can see that with the Mouse filter, the mouse cursor moves a few pixels in one corner of the screen.
I've tried modifying the long hex string of the sdp_record with that of the hid-recorder and adjusting the filter as described in https://github.com/ruundii/bthidhub/issues/31, but with no success.
Any ideas?
My output from hid-recorder: