Re: Xlib: XQueryPointer() and Button4Mask/Button5Mask



Jens Thoms Toerring wrote:
regis <regis.barbanchon@xxxxxxx> wrote:
(while i'm on it, i just realised that my laptop
has an horizontal sensitive scrollbar at the bottom
of its touchpad, and xev report it as mouse buttons 6 and 7,
and it seems there's no Button6Mask and Button7Mask
provided in <X11/X.h>...)

That's right. As far as I know no more than five buttons where
anticipated when X was developed. I don't know if this was a
"who would ever need more than 60kB of memory" or a "who would
have more than five fingers" effect;-) But I would guess that
you can make up your own masks for the 6th and 7th "button"
by using

#define Button6Mask ( 1 << 13 )
#define Button7Mask ( 1 << 14 )

Treating events from the scroll wheel as button events is a
bit of a hack. I guess it would be cleaner to introduce a
new kind of event for them. But I have no idea if any develop-
ment in this direction is under way...

I wonder what hack is used for the double-finger sensitivity
of the Mac laptops under X that allow you to e.g. rotate or zoom
an image with a slide of two fingers on the touchpad
"a la minority report"...

.



Relevant Pages

  • Re: Xlib: XQueryPointer() and Button4Mask/Button5Mask
    ... has an horizontal sensitive scrollbar at the bottom ... of its touchpad, and xev report it as mouse buttons 6 and 7, ... and it seems there's no Button6Mask and Button7Mask ...
    (comp.unix.programmer)
  • Re: synaptics touchpad driver sensitivity
    ... pretty much every touchpad. ... The problem is not how much the cursor ... moves as I move my fingers on the pad. ... There's plenty of documentation ...
    (Fedora)
  • Re: synaptics touchpad driver sensitivity
    ... with pretty much every touchpad. ... cursor moves as I move my fingers on the pad. ... sudden my typing is going three rows above where I was typing, ...
    (Fedora)
  • Re: PC vs Mac OS question
    ... the touchpad on a PC ... The touchpad will also sense your fingers: one finger moves the cursor around, use two fingers and what's under the cursor scrolls both horizontally and vertically. ... Once tapping is turned on, tap with one finger, it's a left-click, tap with two and it's a right-click. ...
    (comp.sys.mac.advocacy)
  • Re: Poll: Track Sticks
    ... the track stick on my new laptop. ... use and removed the rubber tip, but my fingers catch ... My IBM R50 provides both track stick and touchpad, ... over the pad and personal observation of people used to the stick vs. ...
    (comp.sys.laptops)