[gpm]Synaptic giant patch

Peter Berg Larsen pebl@math.ku.dk
Fri, 16 Aug 2002 14:13:00 +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-694662011-1029499980=:18650
Content-Type: TEXT/PLAIN; charset=US-ASCII

On 15 Aug 2002, Ben Pfaff wrote:

> > > Well, before adding the tab patch and turning on
> > > stick_pressure_enabled, it did nothing at all, not the touchpad
> > > itself or its buttons.  Now the touchpad works fine, I can even
> > > double-tap-and-drag, but the touchpad buttons still don't do
> > > anything.

Does toggeling stick_pressure_enabled really alters the behaviour?


> However, I do have a patch against CVS + giant patch that makes
> everything work okay for me:

>    	tmp_buttons |= ((data[1] & 0x02) ? GPM_B_RIGHT  : 0);
> -	tp_process_repeating_actions(state,tmp_buttons,last_stick_buttons,
> -				     &last_stick_button_actions[0],stick_actions);
> +	state->buttons |= tmp_buttons;
> +	/*tp_process_repeating_actions(state,tmp_buttons,last_stick_buttons,
> +				     &last_stick_button_actions[0],stick_actions);*/
>        } 

This patch has the disadvantage that it does not allow for userdefined
behaviour. Of cause it has the small advantage that it works :)

Could you try the attached patch and send me the "stick buttons: " output?

> I suspect that there's something wrong in the
> tp_process_repeating_actions() logic?

I tend to believe that our setups differ.


Peter
--
E-Mail:       pebl@math.ku.dk 
Real name:    Peter Berg Larsen 
Where:        Department of Computer Science, Copenhagen Uni., Denmark

--0-694662011-1029499980=:18650
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=diff_ben
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.OSF.4.21.0208161413000.18650@gram.math.ku.dk>
Content-Description: 
Content-Disposition: attachment; filename=diff_ben

LS0tIHN5bmFwdGljc18yLmMJTW9uIEF1ZyAxMiAwMTo0NToyNyAyMDAyDQor
Kysgc3luYXB0aWNzLmMJRnJpIEF1ZyAxNiAxMzoyNDo1NSAyMDAyDQpAQCAt
MzExLDkgKzMxMSw5IEBADQogLyoNCiAqKiBEZWZpbmUgdGhlIGFjdGlvbiBi
dXR0b24gYml0IHZhbHVlcy4NCiAqLw0KLSNkZWZpbmUgTEVGVF9CVVRUT04g
ICAgICAgICAweDAxDQotI2RlZmluZSBSSUdIVF9CVVRUT04gICAgICAgIDB4
MDINCi0jZGVmaW5lIE1JRERMRV9CVVRUT04gICAgICAgMHgwNA0KKyNkZWZp
bmUgUklHSFRfQlVUVE9OICAgICAgICAweDAxDQorI2RlZmluZSBNSURETEVf
QlVUVE9OICAgICAgIDB4MDINCisjZGVmaW5lIExFRlRfQlVUVE9OICAgICAg
ICAgMHgwNA0KICNkZWZpbmUgRk9VUlRIX0JVVFRPTiAgICAgICAweDA4DQog
I2RlZmluZSBVUF9CVVRUT04gICAgICAgICAgIDB4MTANCiAjZGVmaW5lIERP
V05fQlVUVE9OICAgICAgICAgMHgyMA0KQEAgLTQwNCw3ICs0MDQsNyBAQA0K
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAq
IHNhbWUgZGV2aWNlIHBvcnQuIFRoZSBzdGljayB3aWxsIGJlIGlnbm9yZWQg
aW4NCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgKiBhYnNvbHV0ZSBtb2RlLCB0aGlzIG9wdGlvbiB0cnkgdG8gcmVjb2du
aXplDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICogaXQncyBwYWNrZXRzLiAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgQyovDQotc3RhdGljIGludCAgIHN0aWNrX3ByZXNz
dXJlX2VuYWJsZWQgID0gMDsgLyogQSAoaGFyZCkgcHJlc3Mgb24gdGhlIHN0
aWNrIGlzIHJlcG9ydGVkIGFzIGxlZnQgY2xpY2sgQyovDQorc3RhdGljIGlu
dCAgIHN0aWNrX3ByZXNzdXJlX2VuYWJsZWQgID0gMTsgLyogQSAoaGFyZCkg
cHJlc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