Skip to content
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

RFC: stylus tool id aliases #761

Open
whot opened this issue Sep 1, 2024 · 1 comment
Open

RFC: stylus tool id aliases #761

whot opened this issue Sep 1, 2024 · 1 comment

Comments

@whot
Copy link
Member

whot commented Sep 1, 2024

Let's add a line in the form Aliases=0x1234;0xabcd to libwacom.stylus so we can easily duplicate tools that are identical but have had (or will have) multiple tool ids over time.

Note: this needs to be compatible with the new vid:pid notation: #759

@whot
Copy link
Member Author

whot commented Sep 4, 2024

After some private discussion with @Pinglinux this si probably best solved by this approach:

[0x100802]
Name=Art Pen
PairedStylusIds=0x100804
... other fields...

[0x802]
AliasOf=0x100802
PairedStylusIds=0x804

In other words, we still have entries for styli but declare those to be an alias of another stylus and only define the fields where they override the original stylus' setting.

The originally suggested Aliases=0x802 doesn't work too well for the PairedStylusIds settings which also needs an update for aliased styli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant