Lines 1455-1461
cyapa_raw_input(struct cyapa_softc *sc, struct cyapa_regs *regs, int freq)
Link Here
|
1455 |
sc->delta_x = sc->cap_resx; |
1455 |
sc->delta_x = sc->cap_resx; |
1456 |
if (sc->delta_x < -sc->cap_resx) |
1456 |
if (sc->delta_x < -sc->cap_resx) |
1457 |
sc->delta_x = -sc->cap_resx; |
1457 |
sc->delta_x = -sc->cap_resx; |
1458 |
if (sc->delta_y > sc->cap_resx) |
1458 |
if (sc->delta_y > sc->cap_resy) |
1459 |
sc->delta_y = sc->cap_resy; |
1459 |
sc->delta_y = sc->cap_resy; |
1460 |
if (sc->delta_y < -sc->cap_resy) |
1460 |
if (sc->delta_y < -sc->cap_resy) |
1461 |
sc->delta_y = -sc->cap_resy; |
1461 |
sc->delta_y = -sc->cap_resy; |