[gpm]Synaptic 4 way button patch + more
Peter Berg Larsen
pebl@math.ku.dk
Wed, 17 Apr 2002 01:55:31 +0200 (MET DST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--0-992442388-1019001331=:27948
Content-Type: TEXT/PLAIN; charset=US-ASCII
On 11 Apr 2002, Troy Schultz wrote:
> I would sugggest that it may be nice to be able to configure the actions
> of this 4-way button in much the same manner as is now done for the
> corner taps, defined in gpm-syn.conf.
>
> I also do quite a bit of CAD work, usually PCB layout and if it is not
> too hard, it may be nice to be able to use the 4 way key to actually
> move the mouse pointer, in a similiar manner to a touch stick, as a user
> configurable item.
Attached is a patch that:
Adds option four_way_button_is_mouse between using the 4d button as mouse
movement or buttons.
Adds corner action Toggle_Four_Way_Button_Action that toggles the above
option.
Adds detection of other buttons pressed when using the 4d button.
It now acknowledge resend commands in ps2 mode.
Sends disable/enable stream command before sending commands/request to the
touchpad. This should elliminate almost all startup/init problems.
Previously we (might) read some old motion data and took it as
responces. (ps2)
Rearranged the reset code (ps2).
Rearranged some debug information level.
Peter
--
E-Mail: pebl@math.ku.dk
Real name: Peter Berg Larsen
Where: Department of Computer Science, Copenhagen Uni., Denmark
--0-992442388-1019001331=:27948
Content-Type: APPLICATION/octet-stream; name="diff_synaptics_c_5.gz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.OSF.4.21.0204170155310.27948@artin.math.ku.dk>
Content-Description:
Content-Disposition: attachment; filename="diff_synaptics_c_5.gz"
H4sICGWwvTwAA2RpZmZfc3luYXB0aWNzX2NfNQDNO2lz28aSn81f0ZHLMikC
FC8dlp6cyJbsp1pHVkly+WU3WRRIDEmUQIALgDqeo//++pjBQYKU7EqqlrF4
AN09fR8ziG3bkDyE7iz1h4kTBV63NXxxPZnD8SyGTgc6/YNO+6C3A912u1tr
Nps5NAJ+VZ4A7kHnzUF7/6C7J4C//AL2ft/agya+78Mvv9RgawugD1/dBxjM
0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