Add support for the A4 Tech RFSW-35 mouse wheel. Probe is similar to

4D Plus.

PR:		44333
This commit is contained in:
Mike Heffner 2003-07-12 18:36:04 +00:00
parent 19ff45acc7
commit e0c22597cb
4 changed files with 22 additions and 6 deletions

View file

@ -137,6 +137,7 @@
#define PSM_EXPLORER_ID 4
#define PSM_4DMOUSE_ID 6
#define PSM_4DPLUS_ID 8
#define PSM_4DPLUS_RFSW35_ID 24
#ifdef _KERNEL

View file

@ -2770,11 +2770,18 @@ enable_4dplus(struct psm_softc *sc)
*/
id = get_aux_id(kbdc);
if (id != PSM_4DPLUS_ID)
return FALSE;
switch (id) {
case PSM_4DPLUS_ID:
sc->hw.buttons = 4;
break;
case PSM_4DPLUS_RFSW35_ID:
sc->hw.buttons = 3;
break;
default:
return FALSE;
}
sc->hw.hwid = id;
sc->hw.buttons = 4; /* XXX */
return TRUE;
}

View file

@ -137,6 +137,7 @@
#define PSM_EXPLORER_ID 4
#define PSM_4DMOUSE_ID 6
#define PSM_4DPLUS_ID 8
#define PSM_4DPLUS_RFSW35_ID 24
#ifdef _KERNEL

View file

@ -2770,11 +2770,18 @@ enable_4dplus(struct psm_softc *sc)
*/
id = get_aux_id(kbdc);
if (id != PSM_4DPLUS_ID)
return FALSE;
switch (id) {
case PSM_4DPLUS_ID:
sc->hw.buttons = 4;
break;
case PSM_4DPLUS_RFSW35_ID:
sc->hw.buttons = 3;
break;
default:
return FALSE;
}
sc->hw.hwid = id;
sc->hw.buttons = 4; /* XXX */
return TRUE;
}