Zoom Support
Peter Hutterer
peter.hutterer at who-t.net
Tue Dec 16 18:04:16 PST 2008
On Tue, Dec 16, 2008 at 11:42:06PM +0100, Nicolas Mailhot wrote:
> Le mercredi 17 décembre 2008 à 07:36 +1000, Peter Hutterer a écrit :
> > On Tue, Dec 16, 2008 at 02:49:23PM +0000, micki _ wrote:
> > > I am writing X11 input driver,
> > > I would like to emulate Zoom IN/OUT ,
> > > Is there API ,
> > > for example to emulate button event i use
> > > xf86PostButtonEvent
> > > thank you
> >
> > no. zoom is done on the client-side (e.g. compositor) and input drivers don't
> > have anything to do with it. Additionally, there's no specific "zoom" button,
> > so you have to rely on the client to map button X correctly to the function.
>
> Actually MS has defined standard Zoom+/Zoom- keycodes in the HID spec
> (before mouse wheel zooming took over MS thought a zoom lever in its
> ergo keyboards would be a great idea), so if they are not part of the
> >255 crowd xorg currently zaps commanding zoom function should just be a
> matter of sending those codes, and hoping zooming apps recognize them
you're right, there's a key for it. from linux/input.h:
#define KEY_ZOOMIN 0x1a2
#define KEY_ZOOMOUT 0x1a3
To send that key from an input driver you'd have to init the key class and
send the keycode up to the DDX. But being > 255 the server would ignore it.
Cheers,
Peter
More information about the xorg
mailing list