Re: Huion tablet support

Yorick Hardy <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
Dear adr,

On 2025-03-03, adr wrote:
> >  But perhaps a little investigation
> >  is warranted first so that we can ensure that any future device support
> >  is not crippled by our decisions now.
> 
> Humm... I forgot about distance. It's common to have distance +
> pressure + tilt.  This is going to give trouble already.
> 
> I'm afraid that wscons has to be updated, at the very least a new
> axis should be added.
> 
> Regards,
> adr

It has been a very long time since I looked at the code. I think the right way
to proceed is to add some EVENT types to wsconsio.h and then add a handler,
say wsmouse_pen_input (similar to wsmouse_precision_scroll), for distance,
pressure and tilt. Then we can adjust the uintuos driver and your driver
to instead call wsmouse_pen_input. Finally, the X11 patch which I attached
will have to be adjusted accordingly. I think this will allow existing
code to continue working as before and X11 will also do the right thing.

What do you think?

-- 
Kind regards,

Yorick Hardy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.