Originally Posted by
mcoleman44
Which evdev file in evdev could I find that in?
"Anyway, if you really want to mess with that, you could just move a move to the same master as one of the mt subdevs."
How?
Sorry, should have been more clear. You can muck about with the source of the evdev X driver. I think the pertinent code would be in evdev.c. All the usual warnings apply about playing with core code on your machine.
First, enable mt for your mt device, create a couple masters, and then reassign slaves in groups. (Sorry, not using evdev in my current Xsession, so not actual commands)
Code:
â¡ Virtual core pointer id=2 [master pointer (3)]
â â³ Virtual core XTEST pointer id=4 [slave pointer (2)]
â â³ ntrig_pen_evdev id=6 [slave pointer (2)]
â â³ stylus id=7 [slave pointer (2)]
â â³ eraser id=8 [slave pointer (2)]
â â³ touch id=9 [slave pointer (2)]
â â³ mtouch id=10 [slave pointer (2)]
(fake devs made up to illustrate)
â â³ "kitty mouse" id=11 [slave pointer (2)]
â â³ "trackman FX" id=12 [slave pointer (2)]
â â³ mtouch sub 0 id=13 [slave pointer (2)]
â â³ mtouch sub 1 id=14 [slave pointer (2)]
xinput create-master a
xinput create-master b
â¡ a pointer id=18 [master pointer (19)]
â â³ a XTEST pointer id=20 [slave pointer (18)]
⣠a keyboard id=19 [master keyboard (18)]
â³ a XTEST keyboard id=21 [slave keyboard (19)]
â¡ b pointer id=22 [master pointer (23)]
â â³ b XTEST pointer id=24 [slave pointer (22)]
⣠b keyboard id=23 [master keyboard (22)]
â³ b XTEST keyboard id=25 [slave keyboard (23)]
xinput reattach 11 18
xinput reattach 13 18
xinput reattach 12 22
xinput reattach 14 22
Now we have kitty mouse supplying clicks on the same pointer as the first finger, and my trackball sending clicks to the pointer of my second finger. And you will need the cat to hit the mouse buttons for you if you actually want to try to use such a configuration (or put a mouse by your toes).
I think you could have some fun with this.
Sorry about the unicode characters instead of the usual line art. I should probably clean up my xterm settings.
Bookmarks