linuxwacom / xf86-input-wacom

X.Org driver for Wacom devices
356 stars 45 forks source link

absolute mode tweak #332

Closed petaflot closed 7 months ago

petaflot commented 8 months ago

forgive the lame title, I lack the words to express in a short form what I am trying to achieve. suggestions welcome.

I have a (non-graphic) tablet with an active area of 152x95mm (1.6 aspect ratio) and a triple-head display (5.333 aspect ratio). When I use the tablet, it's limited to a portion of a single screen.

What I'd like to achieve is have a ~1:1 match between the stylus motion and the pointer motion on screen, limited to a very specific portion of my display.

so.. is there a way to rapidly achieve at least part of the above?

thanks

Pinglinux commented 8 months ago

You probably can map your tablet to a screen area by xinput's "Coordinate Transformation Matrix": https://github.com/linuxwacom/xf86-input-wacom/wiki/Dual-and-Multi-Monitor-Set-Up#coordinate-transformation-matrix

petaflot commented 8 months ago

@Pinglinux thanks a lot for the hint

this is what I've come up so far https://github.com/petaflot/input_scaling

atm it has very basic functionality, but it works. I consider this issue as "WIP / room for improvement" but the code that remains to be written is not strictly related to xf86-input-wacom. should we close the issue?

petaflot commented 8 months ago

could whoever can edit the documentation linked by @Pinglinux fix the bad display of the matrices? they're shown as tex source and it's not quite comfortable to read

there is also a very explicit diagram here: https://en.wikipedia.org/wiki/File:2D_affine_transformation_matrix.svg

jigpu commented 7 months ago

TeX source has been replaced with SVG images