diff options
author | Peter Osterlund <petero2@telia.com> | 2004-04-18 20:27:31 +0200 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:02:12 +0200 |
commit | 264bbfd70a6102dd2a9b8b347e6a31a633984bc0 (patch) | |
tree | 861d6e03f87b27a3967f607b45cbb6c3c590e019 /synaptics.c | |
parent | 8148d66fb55dc3307fb653242c5120c7192e9773 (diff) |
Added (untested) support for the FreeBSD psm mouse driver.
Diffstat (limited to 'synaptics.c')
-rw-r--r-- | synaptics.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/synaptics.c b/synaptics.c index a532e4b..348181c 100644 --- a/synaptics.c +++ b/synaptics.c @@ -171,10 +171,12 @@ SetDeviceAndProtocol(LocalDevicePtr local) enum SynapticsProtocol proto = SYN_PROTO_PSAUX; str_par = xf86FindOptionValue(local->options, "Protocol"); - if (str_par && !strcmp(str_par, "event")) { - proto = SYN_PROTO_EVENT; - } else if (str_par && !strcmp(str_par, "psaux")) { + if (str_par && !strcmp(str_par, "psaux")) { /* Already set up */ + } else if (str_par && !strcmp(str_par, "event")) { + proto = SYN_PROTO_EVENT; + } else if (str_par && !strcmp(str_par, "psm")) { + proto = SYN_PROTO_PSM; } else { /* default to auto-dev */ if (event_proto_operations.autoDevProbe(local)) proto = SYN_PROTO_EVENT; @@ -186,7 +188,8 @@ SetDeviceAndProtocol(LocalDevicePtr local) case SYN_PROTO_EVENT: priv->proto_ops = &event_proto_operations; break; - default: + case SYN_PROTO_PSM: + priv->proto_ops = &psm_proto_operations; break; } } |