-
-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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
digitizer: set physical size #24759
base: develop
Are you sure you want to change the base?
digitizer: set physical size #24759
Conversation
Might be better to have the physical size configurable; the Microsoft documentation does mention that these tags are necessary. |
e4f68a3
to
7c01c4a
Compare
I set the default to be 10 inches and added a Seems to work equally well at least for me. |
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.
Should also be done for the V-USB code for parity.
I made a similar change to |
V-USB is mainly for the ATmega32A and 328(P), which don't have native USB. https://www.obdev.at/products/vusb/index.html As you can see, the V-USB code in QMK has its own set of USB descriptors, for reasons, whereas LUFA (USB AVR) and ChibiOS (ARM) share the ones housed in |
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.
Since this define is overridable, it will need some documentation. Also, the reported physical size of the digitizer surface will always be square, as it applies to both the X and Y usages. Maybe they should be separately configurable.
At least on Linux with X11 (Ubuntu), without a physical size in the descriptor the cursor does not move. Setting a maximum phyiscal value to anything non-zero seems to work equally well, so setting it to 10 inches for a reasonable default value. This change makes the digitizer work on my Ubuntu laptop. A Windows laptop and a Chromebook worked both with and without this change.
I can do that... But I don't know if all of this matters for anything? Does it matter what the physical dimensions are? I know that I needed it to be set to something for the pointer to work on my system and I can see changing the physical maximum changes the Anyway, I've done that for now. |
Fix digitizer cursor movements on platforms that require a physical maximum value.
Description
At least on linux with X11, without a physical size set the cursor does not move. Setting the maximum phyiscal value to anything non-zero seems to work equally well, so setting it to 1024 which I think should imply a ~10 inch physical touchpad size.
I assume this works as-is on other OSs, so it would probably be wise to try to test this to make sure it does not cause a regression on some other platform. I've tested on a an Ubuntu laptop with X11 (broken before change, fixed after the change) and on a Windows laptop and a Chromebook (both working both before and after the change). I don't have an Apple laptop to test on.
Types of Changes
Issues Fixed or Closed by This PR
I haven't filed an issue, but happy to add one if you think one is needed.
Checklist