Re: alternate wmode for GPM synaptics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 23, 2002 at 12:41:00AM +0200, Peter Berg Larsen wrote:
> > 3. My pad has left and right buttons, and then a button in the middle for up
> >    and down.  GPM still maps this as left, right, middle and fourth, which I
> >    don't find very useful.
> 
> Is this a type of "4 way botton" or is it something a I dont know? (do you
> have a link with description?) All the bottons I have knowledge of are all
> configurable except #fingertaps (I will send a patch soon). (though some
> only through gpm's config)

In syn_ps2_translate_wmode_data() of the new synaptics.c, you have:
    report->left     = check_bits (data[0], 0x01);
    report->middle   = check_bits (data[0] ^ data[3], 0x01);
    report->right    = check_bits (data[0], 0x02);
    report->fourth   = check_bits (data[0] ^ data[3], 0x02);
    report->up       = 0;
    report->down     = 0;

On my pad, what here becomes middle and fourth, is actually an up/down
button that sits between button 1 and 3.  I see action masks and things
(didn't spend too much time): is it possible to make these end up as up and
down in the repeater device?

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/


[Index of Archives]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Gimp]     [Yosemite News]