diff options
author | Peter Osterlund <petero2@telia.com> | 2003-07-15 11:42:36 +0200 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:01:02 +0200 |
commit | 2c8d34d0cce5178500b3da34c4857426f1f7e221 (patch) | |
tree | d90e85e2e61bffd1dcb4e9662574391d933a4836 | |
parent | 7e22ec4addf8787c4f05b55bb02b3abcc3dded58 (diff) |
Use BTN_0 ... BTN_3 for reporting multi button events. From
Hartwig Felger.
-rw-r--r-- | synaptics.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/synaptics.c b/synaptics.c index 14211cf..51a552d 100644 --- a/synaptics.c +++ b/synaptics.c @@ -1224,10 +1224,16 @@ SynapticsParseEventData(LocalDevicePtr local, SynapticsPrivatePtr priv, case 0x116: /* BTN_BACK */ priv->hwState.down = (ev.value ? TRUE : FALSE); break; - case 0x113: /* BTN_SIDE cb_l */ + case 0x100: /* BTN_0 (multi-btn-0) */ + priv->hwState.up = (ev.value ? TRUE : FALSE); + break; + case 0x101: /* BTN_1 (multi-btn-1) */ + priv->hwState.down = (ev.value ? TRUE : FALSE); + break; + case 0x102: /* BTN_2 (multi-btn-2) */ priv->hwState.cbLeft = (ev.value ? TRUE : FALSE); break; - case 0x114: /* BTN_EXTRA cb_r */ + case 0x103: /* BTN_3 (multi-btn-3) */ priv->hwState.cbRight = (ev.value ? TRUE : FALSE); break; } |