summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandr Shadchin <shadchin@cvs.openbsd.org>2010-11-26 06:07:48 +0000
committerAlexandr Shadchin <shadchin@cvs.openbsd.org>2010-11-26 06:07:48 +0000
commit64060aafbde7f0155846772781683daae00e095c (patch)
tree57e641c02108c49316ca82c8e0c0b1c8c0929fd2
parent0e502515ff97f91b410bfb483b7c6734f306d84b (diff)
Remove sunmouse protocol decoder. Now sunmouse works through wsmouse.
The sunmouse protocol decoder is a local addition (it was added by millert@ back in 2002 and never merged upstreams. ok matthieu@, miod@
-rw-r--r--driver/xf86-input-mouse/src/mouse.c14
-rw-r--r--driver/xf86-input-mouse/src/xf86OSmouse.h1
2 files changed, 0 insertions, 15 deletions
diff --git a/driver/xf86-input-mouse/src/mouse.c b/driver/xf86-input-mouse/src/mouse.c
index 1ebd13f59..a296021b7 100644
--- a/driver/xf86-input-mouse/src/mouse.c
+++ b/driver/xf86-input-mouse/src/mouse.c
@@ -253,7 +253,6 @@ static MouseProtocolRec mouseProtocols[] = {
{ "IntelliMouse", MSE_SERIAL, msDefaults, PROT_IMSERIAL },
{ "ThinkingMouse", MSE_SERIAL, msDefaults, PROT_THINKING },
{ "AceCad", MSE_SERIAL, acecadDefaults, PROT_ACECAD },
- { "SunMouse", MSE_SERIAL, mlDefaults, PROT_SUNMOUSE },
{ "ValuMouseScroll", MSE_SERIAL, msDefaults, PROT_VALUMOUSESCROLL },
/* Standard PS/2 */
@@ -282,8 +281,6 @@ static MouseProtocolRec mouseProtocols[] = {
{ NULL, MSE_NONE, NULL, PROT_UNKNOWN }
};
-static unsigned char proto[PROT_NUMPROTOS][8];
-
/* Process options common to all mouse types. */
static void
MouseCommonOptions(InputInfoPtr pInfo)
@@ -1268,14 +1265,6 @@ MouseReadInput(InputInfoPtr pInfo)
for (j = 0; j < pBufP; j++)
pBuf[j] = pBuf[j+1];
pMse->inSync = 0;
-
- /* If SunMouse gets a 5 byte packet, switch to MouseSystems */
- if (!baddata && pMse->protocolID == PROT_SUNMOUSE &&
- (u & pMse->protoPara[5]) == pMse->protoPara[6]) {
- pMse->protocolID = PROT_MSC;
- memcpy(pMse->protoPara, proto[pMse->protocolID],
- sizeof(pMse->protoPara));
- }
continue;
}
/* Tell auto probe that we were successful */
@@ -1323,7 +1312,6 @@ MouseReadInput(InputInfoPtr pInfo)
break;
case PROT_MSC: /* Mouse Systems Corp */
- case PROT_SUNMOUSE:
buttons = (~pBuf[0]) & 0x07;
dx = (signed char)(pBuf[1]) + (char)(pBuf[3]);
dy = - ((signed char)(pBuf[2]) + (char)(pBuf[4]));
@@ -2428,7 +2416,6 @@ static unsigned char proto[PROT_NUMPROTOS][8] = {
{ 0xf8, 0x80, 0x00, 0x00, 5, 0x00, 0xff, MPF_NONE }, /* BusMouse */
{ 0xf8, 0x80, 0x00, 0x00, 5, 0x00, 0xff, MPF_NONE }, /* Auto (dummy) */
{ 0xf8, 0x80, 0x00, 0x00, 8, 0x00, 0xff, MPF_NONE }, /* SysMouse */
- { 0xf8, 0x88, 0x00, 0x00, 3, 0xf8, 0x80, MPF_SAFE }, /* SunMouse */
};
@@ -2727,7 +2714,6 @@ initMouseHW(InputInfoPtr pInfo)
break;
case PROT_MSC: /* MouseSystems Corp */
- case PROT_SUNMOUSE:
usleep(100000);
xf86FlushInput(pInfo->fd);
break;
diff --git a/driver/xf86-input-mouse/src/xf86OSmouse.h b/driver/xf86-input-mouse/src/xf86OSmouse.h
index b90c306ba..33b223219 100644
--- a/driver/xf86-input-mouse/src/xf86OSmouse.h
+++ b/driver/xf86-input-mouse/src/xf86OSmouse.h
@@ -70,7 +70,6 @@ typedef enum {
PROT_BM,
PROT_AUTO,
PROT_SYSMOUSE,
- PROT_SUNMOUSE,
PROT_NUMPROTOS /* This must always be last. */
} MouseProtocolID;