Re: Xlib: XQueryPointer() and Button4Mask/Button5Mask
- From: regis <regis.barbanchon@xxxxxxx>
- Date: Fri, 25 Jul 2008 23:33:48 +0200
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"...
.
- Follow-Ups:
- Re: Xlib: XQueryPointer() and Button4Mask/Button5Mask
- From: dj3vande
- Re: Xlib: XQueryPointer() and Button4Mask/Button5Mask
- References:
- Xlib: XQueryPointer() and Button4Mask/Button5Mask
- From: regis
- Re: Xlib: XQueryPointer() and Button4Mask/Button5Mask
- From: Jens Thoms Toerring
- Re: Xlib: XQueryPointer() and Button4Mask/Button5Mask
- From: regis
- Re: Xlib: XQueryPointer() and Button4Mask/Button5Mask
- From: Jens Thoms Toerring
- Xlib: XQueryPointer() and Button4Mask/Button5Mask
- Prev by Date: Re: sending recv() data to a file
- Next by Date: Re: Xlib: XQueryPointer() and Button4Mask/Button5Mask
- Previous by thread: Re: Xlib: XQueryPointer() and Button4Mask/Button5Mask
- Next by thread: Re: Xlib: XQueryPointer() and Button4Mask/Button5Mask
- Index(es):
Relevant Pages
|