Submit #2921 » 0001-Allow-moused-to-work-with-sysmouse-when-the-port-is-.patch
usr.sbin/moused/moused.c | ||
---|---|---|
1273 | 1273 |
if (rodent.level < 0) |
1274 | 1274 |
rodent.level = 1; |
1275 | 1275 |
ioctl(rodent.mfd, MOUSE_SETLEVEL, &rodent.level); |
1276 |
rodent.level = (ioctl(rodent.mfd, MOUSE_GETLEVEL, &level) == 0) ? level : 0;
|
|
1276 |
rodent.level = (ioctl(rodent.mfd, MOUSE_GETLEVEL, &level) == 0) ? level : rodent.level;
|
|
1277 | 1277 | |
1278 | 1278 |
/* |
1279 | 1279 |
* Interrogate the driver and get some intelligence on the device... |
... | ... | |
1314 | 1314 |
cur_proto[4] = rodent.mode.packetsize; |
1315 | 1315 |
cur_proto[0] = rodent.mode.syncmask[0]; /* header byte bit mask */ |
1316 | 1316 |
cur_proto[1] = rodent.mode.syncmask[1]; /* header bit pattern */ |
1317 |
} else if (rodent.rtype == MOUSE_PROTO_SYSMOUSE) { |
|
1318 |
bcopy(proto[rodent.rtype], cur_proto, sizeof(cur_proto)); |
|
1319 |
if (rodent.level == 1) { |
|
1320 |
cur_proto[4] = 8; |
|
1321 |
} |
|
1317 | 1322 |
} |
1318 | 1323 | |
1319 | 1324 |
/* maybe this is a PnP mouse... */ |