XTestFakeButtonEvent with buttons > 3?

Pat Kane pekane52 at gmail.com
Mon Oct 12 10:41:36 PDT 2009


$  grep  MAXBUTTONS   driver/xf86-input-void/src/void.c
#define MAXBUTTONS 3

Pat
---



On Mon, Oct 12, 2009 at 11:51 AM, McDonald, Michael-p7438c
<Michael.McDonald at gdc4s.com> wrote:
>> -----Original Message-----
>> From: Peter Hutterer [mailto:peter.hutterer at who-t.net]
>> Sent: Sunday, October 11, 2009 8:35 PM
>> To: McDonald, Michael-p7438c
>> Cc: xorg at lists.freedesktop.org
>> Subject: Re: XTestFakeButtonEvent with buttons > 3?
>>
>> On Fri, Oct 09, 2009 at 10:16:43AM -0700, McDonald,
>> Michael-p7438c wrote:
>> > We've been using XTestFakeButtonEvent quite happily to inject button
>> > events until a user decided to use the scroll wheel.
>> >
>> >     Major opcode: 147 (XTEST)
>> >     Minor opcode: 2 (X_XTestFakeInput)
>> >     Value: 5
>> >
>> > So I take it that Xtest only supports buttons 1 thru 3. Has
>> this been
>> > fixed in newer versions? (We're using version 1.0.1-3.1 from RH5.3)
>>
>> xtest supports button presses up to the number of buttons the
>> device has
>> provided. so assuming you have a 5 button mouse you should be
>> able to send
>> button 5 presses.
>
> "the number of buttons the device has provided"? Which device are you
> refering to? The mouse connected to the X server that we're sending the
> Xtest message to? That server has the void mouse!
>
> Mike McDonald
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
>



More information about the xorg mailing list